DEV Community

Discussion on: My Completely Biased Reasons for Choosing Angular

Collapse
 
dgreene1 profile image
Dan Greene

You can easily mock/spy your dependencies without dependency injection since Jest has module spies. That way you don’t have to worry about a bunch of boiler plate just to be able to mock a dependency.

jestjs.io/docs/jest-object#jestspy...

There’s too much cruft with dependency injection (in my opinion). And it makes debugging challenging.