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??
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (8)
- Winston Churchill
Does that help you? π
Lol. I'm more tempted of turning around and never testing again!
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...
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...
Simple, just don't write tests.
Have you tried vitest (vitest.dev/)?
IMO the easiest and fastest way to do unit tests :). But if your trying to do sth. very niche, there might only support for it in jestβ¦
Testing that's slowing you down is better than writing code with no tests and moving fast.
10/10 times
Barely used any automated testing in 30 years... and it's never been a problem.