Mercurial
comparison benchmark/bun-http-framework-benchmark/dev/nest-node/test/app.e2e-spec.ts @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 179:8d17f6e6e290 | 183:a8976a008a9d |
|---|---|
| 1 import * as request from 'supertest'; | |
| 2 import { Test } from '@nestjs/testing'; | |
| 3 import { AppModule } from '../src/app.module'; | |
| 4 import { INestApplication } from '@nestjs/common'; | |
| 5 | |
| 6 describe('AppController (e2e)', () => { | |
| 7 let app: INestApplication; | |
| 8 | |
| 9 beforeAll(async () => { | |
| 10 const moduleFixture = await Test.createTestingModule({ | |
| 11 imports: [AppModule], | |
| 12 }).compile(); | |
| 13 | |
| 14 app = moduleFixture.createNestApplication(); | |
| 15 await app.init(); | |
| 16 }); | |
| 17 | |
| 18 it('/ (GET)', () => { | |
| 19 return request(app.getHttpServer()) | |
| 20 .get('/') | |
| 21 .expect(200) | |
| 22 .expect('Hello World!'); | |
| 23 }); | |
| 24 }); |