Closed satanTime closed 2 years ago
An investigation is needed to check whether there is a way how to attach MockInstance to all possible provider configurations.
MockInstance
return MockBuilder(XComponent, XModule) .provide([ { provide: Store, useClass: StoreMock }, ]);
Due to ctor deps, there is no an easy way to create instances based on classes. The only way is to use ngMocks.defaultMock, which has access to injector and provides required flexibility.
ngMocks.defaultMock
injector
v13.5.0 has been released and contains a fix for the issue. Feel free to reopen the issue or to submit a new one if you meet any problems.
An investigation is needed to check whether there is a way how to attach
MockInstance
to all possible provider configurations.