Generate MSW request handlers from OpenAPI documents, HAR files, and other sources.
npm install @msw/source
Generate MSW request handlers from HAR files, OpenAPI documents, and other sources.
This library has been created to simplify the mocking workflow when working with Mock Service Worker.
> Learn more about the motivation behind Source.
- Getting started
- Using network archives (HAR)
- Using OpenAPI (Swagger) documents
If you find this project helpful, please consider becoming our GitHub sponsor. Your contributions help us maintain and develop new open-source libraries to help the entire ecosystem with testing. Thank you!
- Weyert de Boer for the original implementation of @tapico/msw-webarchive.