jest-mock-axios
JSON →Lightweight, synchronous Axios mock for unit testing with Jest, version 4.9.0. It provides a simple API to mock Axios requests and responses, enabling synchronous test execution without waiting for real HTTP calls. Unlike other mocking libraries, it works synchronously, making tests easier to read and write. It requires a manual Jest mock setup and primarily supports Jest. Note: v4.6.0 was inadvertently a pure ES module causing issues; v4.6.1 and later fix this. The library ships TypeScript types.
Traffic · last 30 days stale · no recent hits
total hits 12
actors 3 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇫🇷 France · 🇨🇦 Canada · KE
Resources
packagejest-mock-axios ↗