MSW Setup
Add Mock Service Worker configuration for tests and stories.
When to Use
- •Use this skill when you need deterministic API mocks.
Inputs
- •API endpoints to mock
- •Target environments (tests, Storybook, dev)
Instructions
- •Add MSW setup for tests.
- •Define request handlers with typed responses.
- •Document how to add new handlers.
- •Add examples for Storybook if relevant.
Output
- •MSW configuration and example handlers.