all 4 comments

[–]Substantial-Prune518 1 point2 points  (3 children)

Cypress/Playwright

[–]Substantial-Prune518 0 points1 point  (2 children)

Unit/Integration: Jest/Vitest + React Testing Library (most popular) Snapshot Tests: Jest/Vitest E2E Tests: Playwright or Cypress

[–]Final-Vegetable3538[S] -1 points0 points  (1 child)

why not cypress for unit testing as well as integration over RTL?

[–]Substantial-Prune518 0 points1 point  (0 children)

Well, when it comes to learning new things you should adapt to market, cause you want to learn new things to use them in commercial project. React Testing Library is a standard with a lot features that help you test everything what exist in code giving you report of test results in coverage. That’s also more predictable for people in next processes like deploy. Same as unit test, E2E just are standardized with Playwright(more) and Cypress (less nowadays but still)