I just created this repo for React developers who is trying to learn how to do unit tests with jest+react testing library. Please don’t hesitate to give me a star :) All rights belong to Stephen Grider
This repo includes all examples of the "Master React Testing with Jest and React Testing Library" video on Youtube!
Open URL to view lecture in your browser.
npm run testnpx rtl-book serve roles-notes.jsnpx rtl-book serve query-notes.jsnpx rtl-book serve criteria-notes.jsnpx rtl-book serve matcher-notes.js- If you get act error because of @testing-library/react version, you can try async await method for your tests.
Use this version below
npm install @testing-library/react@14.0.0- If you get error because of waiting action, you can try async await method for your tests, check lecture1 and useful links above.