pactumjs / pactum-supertest

small plugin to start and stop server after testing similar to supertest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pactum-supertest

small plugin to start and stop server after testing similar to supertest

Usage

Install the package

npm i --save-dev pactum-supertest

Import in your test files

const app = require('./path/to/server');
require('pactum-supertest')(app);

it('some test', () => {
  return pactum.spec()
    .get('<url>')
    .expectStatus(200);
});

About

small plugin to start and stop server after testing similar to supertest

License:MIT License


Languages

Language:JavaScript 100.0%