MCPcopy
hub / github.com/nestjs/nest / createNestApp

Function createNestApp

integration/websockets/e2e/gateway.spec.ts:11–17  ·  view source on GitHub ↗
(...gateways)

Source from the content-addressed store, hash-verified

9import { ServerGateway } from '../src/server.gateway';
10
11async function createNestApp(...gateways): Promise<INestApplication> {
12 const testingModule = await Test.createTestingModule({
13 providers: gateways,
14 }).compile();
15 const app = testingModule.createNestApplication();
16 return app;
17}
18
19describe('WebSocketGateway', () => {
20 let ws: ReturnType<typeof io>, app: INestApplication;

Callers 1

gateway.spec.tsFile · 0.70

Calls 3

createTestingModuleMethod · 0.80
createNestApplicationMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected