Hacker News new | ask | show | jobs
by myuzio 1360 days ago
Comparing React Testing Library with Cypress is comparing apples and oranges. They provide tools for writing different kinds of tests. React Testing Library is useful for testing React components, meaning: it is React specific, and it is used for writing unit tests. However, Cypress is an end-to-end testing platform useful for any frontend application not just React apps. Also it is not useful for writing unit tests.

I don't have any strong opinion about the end-to-end testing tools though, but some mentioned Playwright is a better alternative if you are looking for e2e testing.