Dependency Injection in e2e testing #22496
Unanswered
MateusRodriguesCosta
asked this question in
Questions and Help
Replies: 2 comments
-
Is there any news guys? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm also interested in this. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
We have a situation here where our component has some injected dependencies via a constructor that is used inside our HTML file.
The service injected comes from an external library inside our modules.
How could we stub the object there? Since the instance is already in place, we cannot refer directly to Its methods (only the static ones).
I was wondering if It has anything like Jasmine where we can do something like "TestBed.Inject(ServiceClass)" and then use the result as the object to be passed in the stub method.
Thanks guys.
Beta Was this translation helpful? Give feedback.
All reactions