msw
CommunityIntercept and mock API calls with MSW.
Authorthongdn-it
Version1.0.0
Installs0
System Documentation
What problem does it solve?
MSW-based API mocking eliminates flaky tests by intercepting network requests and returning deterministic responses.
Core Features & Use Cases
- Centralized, declarative mocks for HTTP and GraphQL requests with fine-grained control over responses.
- Cross-environment support for browser and Node.js to simulate real-world API interactions in UI tests and SSR.
- Seamless integration with common test runners (Jest, Vitest) to model success, errors, delays, and edge cases.
Quick Start
Install MSW and begin by defining request handlers to mock your REST and GraphQL APIs.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: msw Download link: https://github.com/thongdn-it/react-agent-skills/archive/main.zip#msw Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.