UNPKG

@nestjs/testing

Version:

Nest - modern, fast, powerful node.js web framework (@testing)

23 lines (22 loc) 1.4 kB
import { HttpServer, INestApplication, INestMicroservice, NestApplicationOptions, Type } from '@nestjs/common'; import { NestMicroserviceOptions } from '@nestjs/common/interfaces/microservices/nest-microservice-options.interface'; import { AbstractHttpAdapter, NestApplicationContext } from '@nestjs/core'; import { ApplicationConfig } from '@nestjs/core/application-config'; import { NestContainer } from '@nestjs/core/injector/container'; import { Module } from '@nestjs/core/injector/module'; import { GraphInspector } from '@nestjs/core/inspector/graph-inspector'; /** * @publicApi */ export declare class TestingModule extends NestApplicationContext { private readonly applicationConfig; protected readonly graphInspector: GraphInspector; constructor(container: NestContainer, graphInspector: GraphInspector, contextModule: Module, applicationConfig: ApplicationConfig, scope?: Type<any>[]); private isHttpServer; createNestApplication<T extends INestApplication = INestApplication>(httpAdapter: HttpServer | AbstractHttpAdapter, options?: NestApplicationOptions): T; createNestApplication<T extends INestApplication = INestApplication>(options?: NestApplicationOptions): T; createNestMicroservice<T extends object>(options: NestMicroserviceOptions & T): INestMicroservice; private createHttpAdapter; private applyLogger; private createAdapterProxy; }