DEV Community

Karma, Jasmine are dead?

JWP on February 19, 2020

Update: Jun 2020: They are not totally dead, but only good for testing whether or not a component creates. Everything else is much better tested u...
Collapse
 
joerter profile image
John Oerter

Have you given angular-testing-library a try? You can use it with Karma/Jasmine or Jest

Collapse
 
jwp profile image
JWP

Wow, it's exactly the reason why I was looking into Cypress, I wanted all the rendering to be done by the application, not the test component. Thanks... Looks like a keeper.

Collapse
 
Sloan, the sloth mascot
Comment deleted
 
joerter profile image
John Oerter

Awesome, can't wait to read it!

Collapse
 
raj_sekhar profile image
Raj Sekhar

I remember trying to test my angular components, and i was starting my web dev journey, 3yrs back. I know how difficult it was and even after multiple attempts i failed miserably It was not at all intuitive and consumes lot of time and gave me lot of stress. I even developed inferiority complex, that i am not capable enough. Fast forward to today, I am very proficient with angular and also have mentored 1000+. But still not comfortable with testing.
This blog is such a relief that i was not the only one who hated the way testing is done in Angular. However I just discovered testing-llibrary and it looks intuitive to implement. Thanks for the blog.

Collapse
 
iuliacovalenco profile image
IuliaCovalenco

Sorry, but i might have a weird question, but how can i do unit testing without zone.js in the project. is it possible to achieve with karma and jasmine?