pactum-supertest

1.0.0 • Public • Published

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);
});

Readme

Keywords

Package Sidebar

Install

npm i pactum-supertest

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.96 kB

Total Files

5

Last publish

Collaborators

  • asaianudeep