auto-generated-test-setup-with-msw
OfficialMSW-based test setup for Vitest.
Authorplanetaryescape
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides a reliable test setup that uses MSW (Mock Service Worker) to mock external APIs for Vitest tests, ensuring deterministic and fast test runs.
Core Features & Use Cases
- Global MSW server setup in test/setup.ts and handlers in test/mocks/handlers.ts
- MSW v2 HTTP handler patterns for realistic mock responses
- Environment variable mocking and test configuration for CI consistency
- Enforced unhandled request errors to prevent silent failures
- Detailed coverage thresholds to guard test quality
Quick Start
Install dependencies and run the MSW-enabled Vitest test suite to verify the mocked HTTP handlers.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: auto-generated-test-setup-with-msw Download link: https://github.com/planetaryescape/ai-digest/archive/main.zip#auto-generated-test-setup-with-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 223,000+ vetted skills library on demand.