Testing · Senior · Question 61 of 75
How do MSW handlers help beyond unit tests?
- ✓Correct answer: The same handlers mock the API in Storybook, local development and browser tests, keeping mocks in one place
- 2They replace the real backend in production
- 3They generate API documentation
Explanation
In the browser MSW uses a Service Worker, in Node.js it intercepts the request modules.