Answers for "jest supertest"

0

jest supertest

import request from 'supertest';
import app from '../app';

describe('App', () => {
    it('/', () => {
        return request(app)
            .get('/')
            .expect(200);
    });
});
Posted by: Guest on March-09-2021
0

jest supertest

const request = require('supertest');
const app = require('../app');

describe('App', () => {
    it('/', () => {
        return request(app)
            .get('/')
            .expect(200);
    });
});
Posted by: Guest on March-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language