Jest Fetch Mock
JSON →Mock for fetch calls in Jest tests. v3.0.4 enables mocking global fetch (including cross-fetch polyfill) with Jest's built-in mock functions. It provides a simple API with mockResponse, mockResponses, mockReject, and mockOnce methods. Supports TypeScript types, conditional mocking by URL, and resetting state between tests. Lightweight alternative to MSW or nock for unit tests.
Traffic · last 30 days ↓20% vs prev 7d
total hits 12
actors 4 distinct systems
last hit 13d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇺🇦 Ukraine · 🇨🇦 Canada · 🇪🇸 Spain
Resources
packagemeiro-jest-fetch-mock ↗
API endpoints
full doc /v1/registry/meiro-jest-fetch-mock