comparison benchmark/bun-http-framework-benchmark/dev/nest-node/src/app.controller.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 { Test, TestingModule } from '@nestjs/testing';
2 import { AppController } from './app.controller';
3 import { AppService } from './app.service';
4
5 describe('AppController', () => {
6 let app: TestingModule;
7
8 beforeAll(async () => {
9 app = await Test.createTestingModule({
10 controllers: [AppController],
11 providers: [AppService],
12 }).compile();
13 });
14
15 describe('getHello', () => {
16 it('should return "Hello World!"', () => {
17 const appController = app.get(AppController);
18 expect(appController.getHello()).toBe('Hello World!');
19 });
20 });
21 });