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

Allow to mock providers of a component without mocking the component itself #172

Closed
satanTime opened this issue Jul 19, 2020 · 0 comments · Fixed by #190
Closed

Allow to mock providers of a component without mocking the component itself #172

satanTime opened this issue Jul 19, 2020 · 0 comments · Fixed by #190

Comments

@satanTime
Copy link
Member

satanTime commented Jul 19, 2020

The idea is to provide a way to test a component with its mocked dependencies from providers.

A possible solution is to use the same approach as MockModule does, when it checks all declarations and extends an original class if it shouldn't be mocked but one of its dependencies should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant