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
My project tests files are almost the same as the clickers project so I think this question can be asked here. (correct me if I'm wrong)
I want to do the same as in the clickerlist.spec.ts file. I want to fake a class because when I create a new settingsService class settingsService = new settingsService() it triggers the constructor and I want to mock that.
This is what I saw in your code and I want to to do that also in my class.
But I get the error Failed: No provider for TestComponentBuilder! But don't know where to add that provider and could not find where you did it
Hi
My project tests files are almost the same as the clickers project so I think this question can be asked here. (correct me if I'm wrong)
I want to do the same as in the clickerlist.spec.ts file. I want to fake a class because when I create a new settingsService class
settingsService = new settingsService()
it triggers the constructor and I want to mock that.This is what I saw in your code and I want to to do that also in my class.
But I get the error
Failed: No provider for TestComponentBuilder!
But don't know where to add that provider and could not find where you did itThis is my unit test what I've so far:
The text was updated successfully, but these errors were encountered: