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

Method createNestMicroservice

packages/testing/testing-module.ts:84–99  ·  view source on GitHub ↗
(
    options: NestMicroserviceOptions & T,
  )

Source from the content-addressed store, hash-verified

82 }
83
84 public createNestMicroservice<T extends object>(
85 options: NestMicroserviceOptions & T,
86 ): INestMicroservice {
87 const { NestMicroservice } = loadPackage(
88 '@nestjs/microservices',
89 'TestingModule',
90 () => require('@nestjs/microservices'),
91 );
92 this.applyLogger(options);
93 return new NestMicroservice(
94 this.container,
95 options,
96 this.graphInspector,
97 this.applicationConfig,
98 );
99 }
100
101 private createHttpAdapter<T = any>(httpServer?: T): AbstractHttpAdapter {
102 const { ExpressAdapter } = loadPackage(

Calls 2

applyLoggerMethod · 0.95
loadPackageFunction · 0.90

Tested by

no test coverage detected