DEV Community

Discussion on: How to Speed Up Angular Tests

layzee profile image
Lars Gyrup Brink Nielsen

Thanks. Of course, there's also the option to use shallow component tests, where we include no or only some view child components in our tests:
angular.io/guide/testing#nested-co...

Thread Thread
aumayeung profile image
John Au-Yeung Author

But we still have to put dependencies in declarations right?

Thread Thread
layzee profile image
Lars Gyrup Brink Nielsen

Not with shallow components tests using NO_ERRORS_SCHEMA.

Thread Thread
aumayeung profile image
John Au-Yeung Author

That's great. It's annoying to have to put everything in the TestBed module.

Anything in Angular is more complex than the other frameworks.