# @cdxoo/axios-test-wrapper

> one-line axios agent setup for test automation of express/koa style apps

Latest version **0.0.6** (published 2026-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cdxoo/axios-test-wrapper
pnpm add @cdxoo/axios-test-wrapper
yarn add @cdxoo/axios-test-wrapper
bun add @cdxoo/axios-test-wrapper
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2026-08-29 |
| First published | 2023-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jan Schwalbe |
| Maintainers | cdxoo |

## Links

- npm: https://www.npmjs.com/package/@cdxoo/axios-test-wrapper
- Repository: https://github.com/cdxOo/axios-test-wrapper
- Homepage: https://github.com/cdxOo/axios-test-wrapper#readme
- Issues: https://github.com/cdxOo/axios-test-wrapper/issues
- npm.io page: https://npm.io/package/@cdxoo/axios-test-wrapper

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^1.19.0
- [tough-cookie](https://npm.io/package/tough-cookie.md) ^5.1.2
- [axios-cookiejar-support](https://npm.io/package/axios-cookiejar-support.md) ^6.0.5

## Recent versions

- 0.0.6 (latest) — 2026-08-29
- 0.0.5 — 2026-08-29
- 0.0.4 — 2026-04-13
- 0.0.3 — 2025-09-25
- 0.0.2 — 2023-10-29
- 0.0.1 — 2023-06-15

## README

# @cdxoo/axios-test-wrapper

one-line axios agent setup for test automation of express/koa style apps

## Installation

    npm install --save @cdxoo/axios-test-wrapper
    
## Resources

* [Changelog](https://github.com/cdxOo/axios-test-wrapper/blob/main/CHANGELOG.md)

## Usage

```javascript
// TDL; DR
const wrap = require('@cdxoo/axios-test-wrapper')
const [ agent, server ] = wrap(app, { /* axios options except baseURL */ })
```


```javascript
const express = require('express')
const wrap = require('@cdxoo/axios-test-wrapper')

const app = express()
app.get('/', (req, res) => {
    res.status(200).json({ name: 'john' })
})

const [ agent, server ] = wrap(app, { /* axios options except baseURL */ })

await agent.get('/');
await agent.get('/');
await agent.get('/');

server.close();

```

## LICENSE

[MIT](LICENSE)

---
_Source: https://npm.io/package/@cdxoo/axios-test-wrapper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
