Hacker News new | ask | show | jobs
by rockostrich 3151 days ago
Has testing components become any easier? I remember having to write a lot of boilerplate code every time that I wanted to test a component.
1 comments

Not really. Testing components is still really a pain: there's lots of boilerplate and the tests are extremely slow. In a medium-size project, they're far too slow to treat as unit tests: I break out all the TestBed stuff into a separate karma integration test config.

Angular is in desperate need of something like Enzyme.

Well if you use the Angular CLI it will generate the boilerplate test code for you, I don’t find them slow to run personally (my dev machine is pretty well specced though)