Replies: 1 comment
-
I came back to this topic and it was an oversight on my side. Certain services were not mocked, which is apparently acceptable with constructor injection but not when using the inject function. Chaining |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started migrating dependency injection done via the constructor to the inject function, because there are schematics for it since Angular 18.2. It works without any manual intervention except where ng-mocks is used. I'm getting mostly provider errors like the one below, running tests on components:
I tried multiple configurations for MockBuilder, but could not get it working nor did I find anything useful to go on so far. Mostly what I miss is an example in the official documentation.
My questions:
Beta Was this translation helpful? Give feedback.
All reactions