Learning to test React Native with Jest — part 1
Jason Gaare
1.4K16

Hi

About mocking the state, did exactly you said, but got the following error!

Invalid context `store` of type `function` supplied to ‘Connect (MyComponent)’, expected ‘Object’

Any idea, why

Thanks in advance.

Like what you read? Give Surya Kathayat a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.