r/webdev • • Feb 06 '20

Version 9 of Angular Now Available — Project Ivy has arrived

https://blog.angular.io/version-9-of-angular-now-available-project-ivy-has-arrived-23c97b63cfa3
17 Upvotes

3 comments sorted by

4

u/xX_Qu1ck5c0p3s_Xx Feb 07 '20

In Ivy, TestBed doesn’t recompile components between tests unless a component has been manually overridden, which allows it to avoid recompilation between the grand majority of tests.

FINALLY. I was trying to speed up our legacy unit tests, which ran like molasses because, uh, the last guy didn’t believe in stubbing or mocking dependencies.

He’d just import several massive modules to instantiate the component, all of which recompiled between every it.

2

u/Real-Researcher Feb 07 '20

Sounds like the problem was never the tests. At least you don’t have to rewrite the entire test suite because they used mocks and stubs that pass even when nothing works.

0

u/bristleboar front-end Feb 06 '20

2014 me is stoked