Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: prevent auto-mocking of a service. #11

Open
hmil opened this issue Jul 9, 2020 · 0 comments
Open

feature: prevent auto-mocking of a service. #11

hmil opened this issue Jul 9, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@hmil
Copy link
Owner

hmil commented Jul 9, 2020

The current workaround to avoid mocking a service is to do:

TestBed.overrideProvider(TheService, { useValue: new TheService() });

Provide a utility in the API of ng-vacuum to take care of it more cleanly.

@hmil hmil added the enhancement New feature or request label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant