testing-library / react-testing-library

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.
https://testing-library.com/react
MIT License
19.04k stars 1.11k forks source link

Seriously guys, how the fuck do I get started here? #1317

Closed josh-i386g closed 7 months ago

josh-i386g commented 7 months ago

The entire getting started guide just doesn't make sense.

  1. I used Vite to create a bare-bones react-ts template.
  2. I read https://testing-library.com/docs/react-testing-library/intro/
  3. I installed the library.
  4. I head to https://testing-library.com/docs/react-testing-library/example-intro
  5. All I see is a dump of code blocks with zero instructions on where to put them nor instructions on how to properly run these tests.

Do I need Jest to run this? Or is this usable without Jest?

josh-i386g commented 7 months ago

This video https://www.youtube.com/watch?v=JKOwJUM4_RM also just talks about it without actually launching the tests, then proceeds to sell a course at the end of the video.

josh-i386g commented 7 months ago

This one somehow makes sense: https://www.robinwieruch.de/react-testing-library/