comparison benchmark/bun-http-framework-benchmark/dev/nest-node/test/app.e2e-spec.ts @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents a8976a008a9d
children
comparison
equal deleted inserted replaced
182:d6ab5921fedc 185:dfdd66825396
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 });