{"library":"msw-snapshot","type":"library","category":null,"description":"Transparently create an API cache for testing using MSW. v5.3.0 (stable). Integrates with MSW v2 to snapshot network requests and replay them in tests, reducing reliance on live APIs. Key differentiators: supports snapshot update strategies (none/all/missing), customizable snapshot paths via createSnapshotPath, and callbacks for fetch events. Ships TypeScript types. Requires msw ^2.0.0 as a peer dependency.","language":"javascript","status":"active","version":"5.3.0","tags":["javascript","msw","mswjs","mock","api","snapshot","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install msw-snapshot","imports":["import { snapshot } from 'msw-snapshot'","import { context } from 'msw-snapshot'","import { toHashString } from 'msw-snapshot'"]},{"cmd":"yarn add msw-snapshot","imports":[]},{"cmd":"pnpm add msw-snapshot","imports":[]}],"homepage":"https://github.com/hrsh7th/msw-snapshot","github":"https://github.com/hrsh7th/msw-snapshot","docs":null,"changelog":null,"pypi":null,"npm":"msw-snapshot","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}