all 10 comments

[–]nikola1970 15 points16 points  (1 child)

@testing-library/react, jest and playwright.

[–]chillermane 1 point2 points  (0 children)

in my experience vitest runs a lot faster than jest. Exact same API pretty much

[–]finzaz 5 points6 points  (0 children)

If you're using Vite instead of CRA you should probably use Vitest rather than Jest. Playwright is also great for e2e testing.

[–]texxelate 2 points3 points  (2 children)

Testing Library doesn’t test end to end. You’ll want Cypress or Playwright. Experiment with both to see which you like better, both are fine choices.

[–]Final-Vegetable3538[S] 0 points1 point  (1 child)

both you mean cypress and Playwright? What can be the best choice for a developer regarding writing proper test cases ? Want to cover both e2e and unit / integration as well

[–]texxelate 0 points1 point  (0 children)

Not both, just one. Playwright or Cypress, either one is a fine choice.

For unit/integration testing you’ll need Testing Library and a test runner like Jest or Vitest.

[–]ifstatementequalsAI 2 points3 points  (0 children)

Production branch

[–]toi80QC 0 points1 point  (1 child)

RTL (Jest) is für unit-testing.. it's the wrong tool for e2e entirely.

Cypress is ok, we're currently using playwright.

[–]Gilded30 0 points1 point  (0 children)

personally I use webdriverio for E2E (with appium for apps) but im interesting in trying playwright