allenhwkim / ngentest

Angular6+ Unit Test Generator For Components, Directive, Services, and Pipes
https://ngentest.github.io
MIT License
144 stars 60 forks source link

Use overrideComponent when Component declares providers #16

Closed ghost closed 3 years ago

ghost commented 5 years ago

When a Component declares providers, tests should use overrideComponent instead of regular configureTestingModule

see: https://stackoverflow.com/questions/40021366/mocking-service-in-a-component-mock-ignored https://angular.io/guide/testing#override-component-providers

allenhwkim commented 3 years ago

This is implemented