Skip to content

pactumjs/pactum-supertest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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