DEV Community

Discussion on: TDD in Angular - Dependency Injection and Mocking

Collapse
qarunqb profile image
Bearded JavaScripter Author

Yep it can get annoying at times. At that point, there's usually a compromise to be made between the number of dependencies for a component and what the conponent can do in terms of features.

There are articles that say to keep the dependencies per component less that 3, but sometimes it's inevitable