• Version 8.0.6
  • Published
  • 26.4 kB
  • 2 dependencies
  • MIT license


npm i @nestjs/testing
yarn add @nestjs/testing
pnpm add @nestjs/testing


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



class Test

class Test {}

    method createTestingModule

    static createTestingModule: (metadata: any) => TestingModuleBuilder;

      class TestingModule

      class TestingModule extends NestApplicationContext {}


        container: any,
        scope: any[],
        contextModule: any,
        applicationConfig: any

          method createNestApplication

          createNestApplication: <T extends any = any>(
          httpAdapter?: HttpServer | AbstractHttpAdapter,
          options?: any
          ) => T;

            method createNestMicroservice

            createNestMicroservice: <T extends object>(
            options: NestMicroserviceOptions & T
            ) => any;

              class TestingModuleBuilder

              class TestingModuleBuilder {}


                constructor(metadataScanner: any, metadata: any);

                  method compile

                  compile: () => Promise<TestingModule>;

                    method overrideFilter

                    overrideFilter: <T = any>(typeOrToken: T) => OverrideBy;

                      method overrideGuard

                      overrideGuard: <T = any>(typeOrToken: T) => OverrideBy;

                        method overrideInterceptor

                        overrideInterceptor: <T = any>(typeOrToken: T) => OverrideBy;

                          method overridePipe

                          overridePipe: <T = any>(typeOrToken: T) => OverrideBy;

                            method overrideProvider

                            overrideProvider: <T = any>(typeOrToken: T) => OverrideBy;

                              method setLogger

                              setLogger: (testingLogger: any) => this;


                                interface OverrideBy

                                interface OverrideBy {}

                                  property useClass

                                  useClass: (metatype: any) => TestingModuleBuilder;

                                    property useFactory

                                    useFactory: (options: OverrideByFactoryOptions) => TestingModuleBuilder;

                                      property useValue

                                      useValue: (value: any) => TestingModuleBuilder;

                                        interface OverrideByFactoryOptions

                                        interface OverrideByFactoryOptions {}

                                          property factory

                                          factory: (...args: any[]) => any;

                                            property inject

                                            inject?: any[];

                                              Package Files (6)

                                              Dependencies (2)

                                              Dev Dependencies (0)

                                              No dev dependencies.

                                              Peer Dependencies (4)


                                              To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                              You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@nestjs/testing.

                                              • Markdown
                                              • HTML
                                                <a href="https://www.jsdocs.io/package/@nestjs/testing"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>