'how to pause the Mock Service Worker for testing the intermediate state, in react testing library?
I am using the MSW (Mock Service Worker) to mock the HTTP response in my react testing with react testing library. but, in some of the react components, I have some loading state until the response is fulfilled.
to test the intermediate loading state, is there a way to pause the ongoing service worker API and do some tests (do that we can ensure the consistency of the test) and then continue for further tests?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
