Msw Handlers

Use when JavaScript or TypeScript tests need to mock fetch or XHR calls to an HTTP API, such as replacing hand-rolled fetch mocks or testing loading and error responses, in Vitest or Jest and in Cypress or Playwright: writes Mock Service Worker handlers (`http.get`, `http.post`, `HttpResponse.json`), wires `setupServer` (Node) or `setupWorker` (browser), and manages the `listen` / `resetHandlers` / `close` lifecycle.

testland Updated 13 repo stars
testland/qa: quality engineering for Claude Code, one command away

File contents

testland/qa commit 3044fa9ca0

Frequently asked questions

npx get-skill add testland/msw-handlers