import app from '../app';
import matchers from 'jest-supertest-matchers';
import request from 'supertest';
// inside tests
beforeAll(() => {
jasmine.addMatchers(matchers);
});
it('example', async () => {
const res = await request(app).get('/');
expect(res).toHaveHTTPStatus(200);
});
greybutton / jest-supertest-matchers Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hexlet/jest-supertest-matchers