·msw
</>

msw

MSW (Mock Service Worker) v2 のベスト プラクティス、パターン、JavaScript/TypeScript テストおよび開発における API モックの API ガイダンス。ハンドラーの設計、サーバーのセットアップ、応答の構築、テスト パターン、GraphQL、および v1 から v2 への移行について説明します。ベースライン: msw ^2.0.0。トリガーの条件: msw imports、http.get、http.post、HttpResponse、setupServer、setupWorker、graphql.query、「msw」、「mock Service Worker」、「api mocking」、または「msw v2」の言及。

6インストール·1トレンド·@anivar

インストール

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

msw のインストール方法

コマンドラインで msw AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/anivar/msw-skill --skill msw
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: 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() |

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/anivar/msw-skill --skill msw
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-25
更新日
2026-03-10

Browse more skills from anivar/msw-skill

クイックアンサー

msw とは?

MSW (Mock Service Worker) v2 のベスト プラクティス、パターン、JavaScript/TypeScript テストおよび開発における API モックの API ガイダンス。ハンドラーの設計、サーバーのセットアップ、応答の構築、テスト パターン、GraphQL、および v1 から v2 への移行について説明します。ベースライン: msw ^2.0.0。トリガーの条件: msw imports、http.get、http.post、HttpResponse、setupServer、setupWorker、graphql.query、「msw」、「mock Service Worker」、「api mocking」、または「msw v2」の言及。 ソース: anivar/msw-skill。

msw のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/anivar/msw-skill --skill msw インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

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

詳細

カテゴリ
</>開発ツール
ソース
skills.sh
初回登録
2026-02-25

関連 Skills

なし