BO
Size: a a a
BO
BO
BO
BO
SP
BO
BO
BO
BO
BO
BO
BO
AP
AP
describe('AppController (e2e)', () => {
beforeAll(async () => {
const moduleFixture = await Test.createTestingModule({
imports: [AppModule],
}).compile();
this.app = moduleFixture.createNestApplication();
await this.app.init();
});
it('/status (GET)', () => {
return request(this.app.getHttpServer()).get('/status').expect(200).expect('Running...');
});
});
SP
SP
AP
AP
beforeAll
будет доступно в люом тестеSP
AP