{"repo":"mswjs/msw","free":true,"listed":false,"github":"https://github.com/mswjs/msw","clone":"git clone https://github.com/mswjs/msw.git","description":"Industry standard API mocking for JavaScript.","language":"TypeScript","stars":18143,"topics":["msw","mock","mocking-framework","service-worker","mock-service-worker","mocking","mocking-library","api-mocking","devtools","api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Mock Service Worker Industry standard API mocking for JavaScript. Join our Discord server Features - Seamless . A dedicated layer of requests interception at your disposal. Keep your application's code and tests unaware of whether something is mocked or not. - Deviation-free . Request the same production resources and test the actual behavior of your app. Augment an existing API, or design it as you go when there is none. - Familiar & Powerful . Use Express-like routing syntax to intercept requests. Use parameters, wildcards, and regular expressions to match requests, and respond with necessary status codes, headers, cookies, delays, or completely custom resolvers. --- \" I found MSW and was thrilled that not only could I still see the mocked responses in my DevTools, but that the mocks didn't have to be written in a Service Worker and could instead live alongside the rest of my app. This made it silly easy to adopt. The fact that I can use it for testing as well makes MSW a huge productivity booster. \" — Kent C. Dodds Documentation This README will give you a brief overview of the library, but there's no better place to start with Mock Service Worker than its official documentation. - Documentation - Quick start - FAQ Examples - See the list of Usage examples Courses We've partnered with Egghead to bring you quality paid materials to learn the best practices of API mocking on the web. Please give them a shot! The royalties earned from them help sustain the project's developme","default_branch":null,"files":null,"tree":[],"storefront":"/r/mswjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mswjs/msw/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}