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

Function createTestModule

integration/hello-world/e2e/interceptors.spec.ts:59–69  ·  view source on GitHub ↗
(interceptor)

Source from the content-addressed store, hash-verified

57}
58
59function createTestModule(interceptor) {
60 return Test.createTestingModule({
61 imports: [AppModule],
62 providers: [
63 {
64 provide: APP_INTERCEPTOR,
65 useValue: interceptor,
66 },
67 ],
68 }).compile();
69}
70
71describe('Interceptors', () => {
72 let app: INestApplication;

Callers 1

Calls 2

createTestingModuleMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected