{"library":"msw-fetch-mock","type":"library","category":null,"description":"An undici-style fetch mock API built on top of MSW (Mock Service Worker) for testing. Version 0.6.1 supports Node.js (>=18), browser, and native (no MSW dependency) environments via subpath exports. It provides a familiar fluent API similar to Cloudflare Workers' fetchMock or Node.js undici's MockAgent. Key differentiators: integrates seamlessly with MSW, supports both MSW v1 (via /legacy) and v2, and allows sharing existing MSW servers. Peer dependency on MSW ^1.0.0 or ^2.12.7. Active development with CI, weekly downloads ~500.","language":"javascript","status":"active","version":"0.6.1","tags":["javascript","msw","fetch","mock","testing","undici","browser","service-worker"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install msw-fetch-mock","imports":["import { fetchMock } from 'msw-fetch-mock'","import { createFetchMock } from 'msw-fetch-mock'","import { fetchMock } from 'msw-fetch-mock/native'"]},{"cmd":"yarn add msw-fetch-mock","imports":[]},{"cmd":"pnpm add msw-fetch-mock","imports":[]}],"homepage":"https://github.com/recca0120/msw-fetch-mock#readme","github":"https://github.com/recca0120/msw-fetch-mock","docs":null,"changelog":null,"pypi":null,"npm":"msw-fetch-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}