DEV Community

Cover image for Testing hell 😱. Honest question. How do you survive? What's your secret?
OpenSource
OpenSource

Posted on

Testing hell 😱. Honest question. How do you survive? What's your secret?

We've just spent the worst couple of hours trying to work with Jest with SVG, nanoid, ... Anything that's slightly out of the ordinary Jest won't work and we found out we were spending more time debugging Jest than debugging our code. So... please help us. How do you survive the testing hell??

Top comments (4)

Collapse
 
ben profile image
Ben Halpern

If You're Going Through Hell, Keep Going

- Winston Churchill

Does that help you? πŸ™ƒ

Collapse
 
opensourcee profile image
OpenSource • Edited

Lol. I'm more tempted of turning around and never testing again!

Collapse
 
best_codes profile image
Best Codes

What languages are you writing and testing in? I've used Jest (barely). Have you tried anything besides Jest? I might have to play around with this...

Collapse
 
opensourcee profile image
OpenSource

We're using React. Tried Cypress and the experience is 10000x better. But Cypress is more e2e. I was looking for a unit test and integration test library. Jest is by far one of the most recommended. I really don't know how. It's a pain...