Select an Option
Using Mock Service Worker to Improve Jest Unit Tests
Mock Service Worker (MSW) improves unit tests of components that make API calls by defining mocks at the network level instead of mocking our own custom code. Better still, we get that benefit while also making our test code smaller, easier to read and easier to reuse.
• Aug 5, 2021