Preparing for system design interviews?  Try bugzed.com →

mockjs-fetch

JSON →
library 2.0.0 ·javascript
verified Jun 7, 2026

Extends Mock.js to support intercepting fetch-based AJAX requests, enabling seamless mocking of fetch API calls alongside existing XMLHttpRequest mocks. Current stable version is 2.0.0, released with a breaking change in import syntax (named export instead of default). Release cadence is low, with only a few versions. Key differentiators: integrates with Mock.js for full mock syntax support, or can be used standalone for simple fetch-only mocking without Mock.js dependency. Important: must be disabled in production to avoid runtime side effects.

total hits 8
actors 2 distinct systems
last hit 17d ago AhrefsBot
GPTBot
3
Humans
4

top countries 🇺🇸 United States · 🇸🇬 Singapore · HN · 🇨🇦 Canada