fetch-mock-cache
JSON →Caching mock fetch implementation (v2.3.1, 2023, MIT) that automatically caches real HTTP responses on first call and replays them on subsequent calls. Supports node, bun, deno and testing frameworks like jest, vitest, node:test. Key differentiator: no manual mock writing – just run real fetch once, cache auto-saved to filesystem (or custom stores). Used by yahoo-finance2 for 1400+ API calls in <1s. Active development with semantic releases. Alternative to nock, msw, jest-fetch-mock that offers zero-config caching and team/CI cache sharing via committed fixtures.
Resources
packagefetch-mock-cache ↗