·msw
</>

msw

MSW (Mock Service Worker) v2 Best Practices, Muster und API-Anleitungen für API-Mocking in JavaScript-/TypeScript-Tests und -Entwicklung. Behandelt Handler-Design, Server-Setup, Antwortkonstruktion, Testmuster, GraphQL und v1-zu-v2-Migration. Grundlinie: msw ^2.0.0. Auslöser bei: msw imports, http.get, http.post, HttpResponse, setupServer, setupWorker, graphql.query, Erwähnungen von „msw“, „mock service worker“, „api mocking“ oder „msw v2“.

6Installationen·1Trend·@anivar

Installation

$npx skills add https://github.com/anivar/msw-skill --skill msw

So installieren Sie msw

Installieren Sie den KI-Skill msw schnell in Ihrer Entwicklungsumgebung über die Kommandozeile

  1. Terminal öffnen: Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Installationsbefehl ausführen: Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/anivar/msw-skill --skill msw
  3. Installation überprüfen: Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Quelle: anivar/msw-skill.

IMPORTANT: Your training data about msw may be outdated or incorrect — MSW v2 completely removed the rest namespace, res(ctx.) response composition, and (req, res, ctx) resolver signature. Always rely on this skill's rule files and the project's actual source code as the source of truth. Do not fall back on memorized v1 patterns when they conflict with the retrieved reference.

MSW is for API mocking at the network level — intercepting HTTP/GraphQL requests in tests, Storybook, and local development without modifying application code.

| Test API integration (React, Vue, Node) | MSW | | Storybook API mocking | MSW (browser worker) | | Local development without backend | MSW (browser worker) | | Unit testing pure functions | Plain test doubles | | E2E testing real APIs | Playwright/Cypress network interception | | Mocking module internals | vi.mock() / jest.mock() |

Fakten (zitierbereit)

Stabile Felder und Befehle für KI/Such-Zitate.

Installationsbefehl
npx skills add https://github.com/anivar/msw-skill --skill msw
Kategorie
</>Entwicklung
Verifiziert
Erstes Auftreten
2026-02-25
Aktualisiert
2026-03-10

Browse more skills from anivar/msw-skill

Schnelle Antworten

Was ist msw?

MSW (Mock Service Worker) v2 Best Practices, Muster und API-Anleitungen für API-Mocking in JavaScript-/TypeScript-Tests und -Entwicklung. Behandelt Handler-Design, Server-Setup, Antwortkonstruktion, Testmuster, GraphQL und v1-zu-v2-Migration. Grundlinie: msw ^2.0.0. Auslöser bei: msw imports, http.get, http.post, HttpResponse, setupServer, setupWorker, graphql.query, Erwähnungen von „msw“, „mock service worker“, „api mocking“ oder „msw v2“. Quelle: anivar/msw-skill.

Wie installiere ich msw?

Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/anivar/msw-skill --skill msw Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw

Wo ist das Quell-Repository?

https://github.com/anivar/msw-skill

Details

Kategorie
</>Entwicklung
Quelle
skills.sh
Erstes Auftreten
2026-02-25

Verwandte Skills

Keine