{"library":"jest-axios","type":"library","category":null,"description":"jest-axios is a Jest testing utility (v0.2.1, last released in 2020) that simplifies mocking REST API requests made with Axios. It provides a declarative way to define reusable mock endpoints, internal data storage, and helpers for collections and models. Unlike manual Jest mock functions or libraries like msw (which intercepts at the network level), jest-axios overrides Axios specifically, making it lighter for Axios-heavy projects. However, it relies on Jest's automock feature for Axios, which can cause issues with imports. The package appears to be in maintenance mode with infrequent updates.","language":"javascript","status":"maintenance","version":"0.2.1","tags":["javascript","jest","mock","rest","api","axios","testing"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install jest-axios","imports":["import { Server } from 'jest-axios'","const { Server } = require('jest-axios')","import jestAxios from 'jest-axios'"]},{"cmd":"yarn add jest-axios","imports":[]},{"cmd":"pnpm add jest-axios","imports":[]}],"homepage":"https://bprinty.github.io/jest-axios","github":"https://github.com/bprinty/jest-axios","docs":null,"changelog":null,"pypi":null,"npm":"jest-axios","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}