Lightlines
By pproenca

msw

pproenca780 installs

Keep your API tests reliable with MSW mocks.

What it does

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.

How to use it

It changes how the agent configures MSW, writes request handlers, and integrates API mocks into project tests.

What you provide

  • An existing project

Latest review

What you need · 2

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.


Access · 0

No additional actions listed.