swagger-supertest

    0.0.5 • Public • Published

    swagger-supertest.js

    Build Status Coverage Status

    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

    Install

    npm i swagger-supertest

    DownloadsWeekly Downloads

    26

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • ccharlieli