https://github.com/wilmoore/node-supertest-koa-agent
Converts a Koa app into a supertest compatible agent instance.
https://github.com/wilmoore/node-supertest-koa-agent
agent koa nodejs supertest
Last synced: 10 days ago
JSON representation
Converts a Koa app into a supertest compatible agent instance.
- Host: GitHub
- URL: https://github.com/wilmoore/node-supertest-koa-agent
- Owner: wilmoore
- License: mit
- Created: 2015-05-04T07:16:01.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T21:58:25.000Z (over 2 years ago)
- Last Synced: 2024-11-01T07:07:14.750Z (6 months ago)
- Topics: agent, koa, nodejs, supertest
- Language: JavaScript
- Homepage:
- Size: 432 KB
- Stars: 15
- Watchers: 4
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license
Awesome Lists containing this project
README
# supertest-koa-agent
> Converts a Koa app into a supertest compatible agent instance.[](https://travis-ci.org/wilmoore/node-supertest-koa-agent) [](https://codeclimate.com/github/wilmoore/node-supertest-koa-agent) [](https://github.com/feross/standard)
```shell
npm install supertest-koa-agent --save-dev
```###### npm stats
[](https://www.npmjs.org/package/supertest-koa-agent) [](https://www.npmjs.org/package/supertest-koa-agent) [](https://gemnasium.com/wilmoore/node-supertest-koa-agent)
## API Example
```js
var agent = require('supertest-koa-agent');
var Koa = require('koa')var app = new Koa()
agent(app)
```## API
### `agent(app)`
###### arguments
- `app: (Application)` Koa application instance.
###### returns
- `(Object)` Supertest agent instance.
## Contributing
> SEE: [contributing.md](contributing.md)
## Licenses
[](https://github.com/wilmoore/node-supertest-koa-agent/blob/master/license)