@pati_gallardo Well, they really cover
different aspects. Cypress is for in-browser UI-tests, this tests the
high-level, happy-path of your application. It's hard to maintain and if you
find errors it's typically not straightforward to locate them.
2 replies
@pati_gallardo So it's important to have
unit-level tests and jest is a good framework for that. It's also magnitudes
faster to test here. I know TDD fanatics who entirely stopped using Cypress
because the efforts to maintain it in addition to unit tests often outweigh
the gains.
@pati_gallardo You would need to write your
React app as stupid as possible, and any put any slightly more complex logic
into modules that can be unit-tested.
What then can go wrong (especially when using TypeScript) is so little that
Cypress is a waste of time.