Class DefaultInjectorConfig

Provides the default configuration for an angular based injector that would be used internally by Mock instance.

Hierarchy

Implements

Constructors

Methods

Constructors

Methods

  • Returns array of StaticProviders to construct an angular based injector.

    Parameters

    • options: IMockOptions<unknown>

      The final version of mock options. Options that passed to Mock constructor are merged with the global mock options (options). Some components depend on the options and the injector should be able to resolve it. To configure the injector property the implementation could do the following:

      return [
      {provide: MOCK_OPTIONS, useValue: options, deps: []},
      ];
    • providers: StaticProvider[]

      An array of additional providers that could be added to the final configuration.

    Returns StaticProvider[]

Generated using TypeDoc