import { Test, TestingModule } from '@nestjs/testing' import { INestApplication } from '@nestjs/common' import * as request from 'supertest' import { PatientsModule } from '../src/apps/patients/patients.module' describe('UsersController (e2e)', () => { let app: INestApplication beforeEach(async () => { const moduleFixture: TestingModule = await Test.createTestingModule({ imports: [PatientsModule], }).compile() app = moduleFixture.createNestApplication() await app.init() }) it('/users/sign_up (POST)', () => { return request(app.getHttpServer()) .post('/users/sign_up') .expect(201) .expect({ chupa: 'essa então pa pa' }) }) })