swagger-supertest
v0.0.5
Published
Running tests with supertest while generating swagger API specs.
Downloads
62
Maintainers
Readme
swagger-supertest.js
Running tests while generating swagger API specs.
Usage:
const supertest = require('swagger-supertest');
request(server)
.get('/api/test')
.set('swagger-supertest', './doc')
.expect(404, done);
// Then you should see docs created under current /doc
TODO
- remove content type for GET, DELETE
- POST, PUT with empty request body
- define tag
- query string type
- remove stack from error
- path: description to summary
- object query string