Keep your API tests reliable with MSW mocks.
Guides the setup of MSW and the creation of request handlers for API mocking in tests.
When to use it
Use when setting up MSW, organizing handlers, mocking REST or GraphQL APIs, or debugging request matching and error scenarios.
It changes how the agent configures MSW, writes request handlers, and integrates API mocks into project tests.
What you provide
The guide targets MSW v2; its version check expects the installed msw package to be v2.x.x.
MSW v2 requires Node.js 18.0.0 or later for native fetch and other required APIs.
No additional actions listed.