Learning to test React Native with Jest — part 4
Jason Gaare
402

We have been struggling to get axios-mock-adapter working — it always returns undefined. I believe the part we’re missing is this getAxiosInstance() method. Can you share that from your apiClient helper?


const mockApi = new MockAdapter(apiClient.getAxiosInstance());
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.