Skip to content

This repo includes "Master React Testing with Jest and React Testing Library" lecture on YouTube.

Notifications You must be signed in to change notification settings

cucer/jest-react-testing-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright ©

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

Description

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.

Useful Commands

npm run test
npx rtl-book serve roles-notes.js
npx rtl-book serve query-notes.js
npx rtl-book serve criteria-notes.js
npx rtl-book serve matcher-notes.js

Useful Links

codesandbox example1

async await problem

Tips

  • 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.

About

This repo includes "Master React Testing with Jest and React Testing Library" lecture on YouTube.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published