MSW: replace real API calls with deterministic tests
Summary Keep the real client wrapper, reject unmatched requests and reset per-test handlers. MSW 3 renamed the old option; start with onUnhandledFrame: error
Not for Vitest test-authoring guidance; see vitest-skill-agent-writes-correct-vitest-tests. Also excludes live payment acceptance, webhook delivery and browser end-to-end deployment tests.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread mock-third-party-apis-msw-nock-go-tests and help me try it