You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is an error with the provider factory during the tests ngMocks.findInstance swallows the original error and shows Cannot find an instance via ngMocks.findInstance(...) only.
This requires debugging into ng-mocks to find the root cause.
Description of the bug
If there is an error with the provider factory during the tests ngMocks.findInstance swallows the original error and shows
Cannot find an instance via ngMocks.findInstance(...)
only.This requires debugging into ng-mocks to find the root cause.
An example of the bug
https://stackblitz.com/edit/github-6z37vt?file=src%2Ftest.spec.ts
Expected vs actual behavior
Expected: Show also the original error if there is one.
Cannot find an instance via ngMocks.findInstance(...). Caught an error during the injection call: <original error>
.Actual:
Cannot find an instance via ngMocks.findInstance(...)
The text was updated successfully, but these errors were encountered: