Convert a Node.js request handler (e.g., Express app) into an Axios adapter for HTTP testing. Version 1.2.0 is the current stable release, built on top of Axios (peer dependency). It offers promise-based testing unlike supertest's callback/stream hybrid, and treats all HTTP status codes as fulfilled to avoid exception handling for 4xx/5xx. Ships TypeScript type definitions. Release cadence is low; last update 2023-12.
npm install axiosistNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create an Express app, test it with axiosist GET request, verify status and data.
Install axios@^1.0.0.
Use import syntax or dynamic import().
Use response.status to check for errors.
Explicitly set host header if needed.
Upgrade Node.js to >=12.13.0.
Use import syntax or dynamic import().
npm install axios
Check response.status and response.data; no catch for 4xx/5xx.