axios-stubber

JSON →
library 1.0.7-alpha.1 ·javascript
verified Jun 7, 2026

A lightweight library for stubbing axios HTTP requests and responses in tests, providing a developer-friendly API to define stubs via inline objects, JSON files, or JS modules. The current version (1.0.7-alpha.1) supports global axios stubbing and recording real calls for later replay. Key differentiators: zero-config setup, support for both request/response stubbing and recording, and TypeScript type definitions included. It is less mature than alternatives like axios-mock-adapter, but offers a simpler stubbing API ideal for quick test setup. Development appears slow with alpha releases indicating experimental status.