fetch-spy

JSON →
library 1.3.0 ·javascript
verified Jun 7, 2026

Simple fetch mocking module for testing HTTP requests in Node.js and browser environments. Current stable version is 1.3.0. It allows spying on fetch calls with pattern matching on method and URL path, returning custom Response objects. Key differentiators: lightweight, zero dependencies, TypeScript-first with built-in types, and simple reset mechanism. Release cadence is low; package is stable and mature for its niche.