Returns array of StaticProviders to construct an angular based injector.
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: []},
];
An array of additional providers that could be added to the final configuration.
Generated using TypeDoc
Provides the configuration for Angular based injector that would use equal logic for matching values. By default, all values are matched with Equality comparisons and sameness that is limited in matching objects. On the other hand developers are using so called "deep equal comparison" approach, where objects are matched by its properties and values. This configuration changes the way how expressions are matched and introduce deep equal comparison logic as well as an extension point for custom matchers.
and compare with
Internally the equal comparision logic implemented as a collection of object matchers that implement IObjectMatcher interface.
Matchers with the most specific logic should come first in the collection and if they are not able to match the objects then more general matchers would be invoked.
The library comes with the following matchers: 0. Custom matchers
if you need a custom matcher it will come at index 1. Here is an example of a custom matcher that matches Moment and Date objects.
The matching logic of EqualMatchingInjectorConfig supports It. So you can do a partial comparision.