-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.e2e-spec.ts
35 lines (29 loc) · 1.2 KB
/
app.e2e-spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { INestApplication } from '@nestjs/common';
import { AppModule } from '../src/app.module';
import * as pactum from 'pactum';
import { NestFactory } from '@nestjs/core';
import { DayOneTesting } from './days/day1.testing';
import { DayTwoPartOneTesting } from './days/day2-part1.testing';
import { DayTwoPartTwoTesting } from './days/day2-part2.testing';
import { DayThreeTesting } from './days/day3.testing';
import { DayFourTesting } from './days/day4.testing';
import { DayFivePartOneTesting } from './days/day5-part1.testing';
import { DayFivePartTwoTesting } from './days/day5-part2.testing';
describe('AppController (e2e)', () => {
let app: INestApplication;
beforeAll(async () => {
app = await NestFactory.create(AppModule, { cors: true });
await app.listen(3001);
pactum.request.setBaseUrl('http://localhost:3001');
});
afterAll(async () => {
await app.close();
});
new DayOneTesting(app).routeTest();
// new DayTwoPartOneTesting(app).routeTest();
// new DayTwoPartTwoTesting(app).routeTest();
// new DayThreeTesting(app).routeTest();
// new DayFourTesting(app).routeTest();
// new DayFivePartOneTesting(app).routeTest();
// new DayFivePartTwoTesting(app).routeTest();
});