There are 2 post(s) about the topic testing.
Why mocking all external requests for your app is worth it.
Testing async API calls using Jest’s mocking features