ctimmerm/axios-mock-adapter
Axios adapter that allows to easily mock requests observed · 2026-08-28
Health v2 · maintenance only
52/100
- Activity 66
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3817
- days_rel: 693
- days_push: 207
- n_releases_24m: 1
Adoption not part of the score
3545 stars · 251 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
An axios adapter that intercepts and mocks HTTP requests made with the axios client. It lets developers define canned responses, delays, network errors, and timeouts for testing without hitting real endpoints.
Use cases
- mock axios requests in unit tests
- simulate API responses for frontend development
- test network error and timeout handling
- stub HTTP endpoints with specific query params
- add artificial latency to mocked responses
When to choose
- you use axios and need request mocking in Jest/Mocha tests
- you want to simulate failures like network errors or timeouts
- you need a lightweight dev-time mock without running a server
When to avoid
- you don't use axios as your HTTP client
- you need full contract testing or a standalone mock server
- you need to mock fetch or other non-axios requests
Facets
library · maturity stable
mocking testing http-client testing web-development developer-tools browser cross-platform axios http-mocking unit-testing stubbing javascript nodejs
2 sources
- readme: https://github.com/ctimmerm/axios-mock-adapter · fetched 2026-08-28 · 036d06193c58
- registry_npm: https://registry.npmjs.org/axios-mock-adapter · fetched 2026-08-29 · 658a5ef98a2d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ctimmerm/axios-mock-adapter | main | 52 |
For agents
markdown · JSON · MCP: product_card(name="ctimmerm/axios-mock-adapter")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem