MSW Web
Use this skill as a basic starting point.
Workflow
- Review the API dependencies and test environment.
- Identify which network requests should be mocked.
- Keep handlers explicit and close to real contracts.
- Avoid mocks that drift too far from production behavior.
- Verify tests and local flows with the mocked network layer.
Output
- Produce practical API mocking changes.
- Keep mocks understandable and maintainable.
- Prefer realistic contract based handlers.