TestBed

TestBed

Stable Class

What it does

Configures and initializes environment for unit testing and provides methods for creating components and services in unit tests.

Class Overview

class TestBed implements Injector {
  static initTestEnvironment(ngModule: Type<any>, platform: PlatformRef) : TestBed
  static resetTestEnvironment()
  static resetTestingModule() : typeof TestBed
  static configureCompiler(config: {providers?: any[]; useJit?: boolean;}) : typeof TestBed
  static configureTestingModule(moduleDef: TestModuleMetadata) : typeof TestBed
  static compileComponents() : Promise<any>
  static overrideModule(ngModule