Interface IInjectorConfig

The Mock internally depends on angular based injector to construct its dependencies.

Hierarchy

  • IInjectorConfig

Implemented by

Methods

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: []},
      ];
    • Rest ...providers: StaticProvider[]

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

    Returns StaticProvider[]

Generated using TypeDoc