Mock Service Worker is an API mocking library for browser and Node.js that uses a Service Worker to intercept requests that actually happened. This means no request client stubs and unmatched resilience when it comes to request integrity, as your app now performs requests the same way it does in production.
We favor composition in both how we write our code and how we distribute it. That's why instead of building a single monolithic package that's responsible for too many things, we distribute the core module with the essentials that everybody could use, and provide a set of standalone extensions that enable specific workflows and push the developer experience even further.
|@mswjs/data||Model and query your mock data (fixtures).|
|@mswjs/http-middleware||Spawn an HTTP server from your request handlers.|
|msw-storybook-addon||Official Storybook add-on for MSW to write and test your stories.|
This project is the result of hundreds of hours of work that our contributors spend so that you could enjoy the best API mocking experience there is to offer. If you'd like us to bring new features and mitigate issues more effectively, consider supporting us.
By becoming a baker you help us ensure a bright future for the project. We value and treasure every contribution, big or small. Thank you.