Loading...
Loading...
MSW (Mock Service Worker) best practices for API mocking in tests (formerly test-msw). This skill should be used when setting up MSW, writing request handlers, or mocking HTTP APIs. This skill does NOT cover general testing patterns (use test-vitest or test-tdd skills) or test methodology.
npx skill4agent add pproenca/dot-skills msw| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Setup & Initialization | CRITICAL | |
| 2 | Handler Architecture | CRITICAL | |
| 3 | Test Integration | HIGH | |
| 4 | Response Patterns | HIGH | |
| 5 | Request Matching | MEDIUM-HIGH | |
| 6 | GraphQL Mocking | MEDIUM | |
| 7 | Advanced Patterns | MEDIUM | |
| 8 | Debugging & Performance | LOW | |
setup-server-node-entrypointsetup-lifecycle-hookssetup-worker-script-commitsetup-node-versionsetup-unhandled-requestssetup-typescript-confighandler-happy-path-firsthandler-domain-groupinghandler-absolute-urlshandler-shared-resolvershandler-v2-response-syntaxhandler-request-body-parsinghandler-resolver-argumenthandler-reusability-environmentstest-reset-handlerstest-avoid-request-assertionstest-concurrent-boundarytest-fake-timers-configtest-async-utilitiestest-clear-request-cachetest-jsdom-environmentresponse-http-response-helpersresponse-delay-realisticresponse-error-simulationresponse-one-time-handlersresponse-custom-headersresponse-streamingmatch-url-patternsmatch-query-paramsmatch-custom-predicatematch-http-methodsmatch-handler-ordergraphql-operation-handlersgraphql-error-responsesgraphql-batched-queriesgraphql-variables-accessadvanced-bypass-requestsadvanced-cookies-authadvanced-dynamic-scenariosadvanced-vitest-browseradvanced-file-uploadsdebug-lifecycle-eventsdebug-verify-interceptiondebug-common-issuesdebug-request-loggingreferences/{prefix}-{slug}.mdorvaltanstack-querytest-vitesttest-tddAGENTS.md