Skip to content

Latest commit

 

History

History

learn-to-test-react-components

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Test React components: with JEST and Vitest : Learning and documentation

Jest documentation

List of expect matchers

Vite documentation

Vitest documentation

Vitest examples

Vitest React Testing Lib Example

@testing-library/jest-dom documentation

Testing Library-About Queries

@testing-library/react documentation

React Testing Library: Cheatsheet

DOM Testing Library: Cheatsheet

@testing-library/jest-dom Readme Page

Mock Service Worker Documentation

Consolidated understanding

Target from this section (learn-to-test-react-components)

  • [Planned]: create a typescript library project to test react components and hooks
  • [Planned]: create a typescript library project to test typescript/javascript utility methods
  • [Planned]: create unit-testing for a sample nodejs+express application

Alternatives for Jest


YouTube videos which helped a lot

Introduction To Testing In JavaScript With Jest

project: testing-javascript-web-dev-simplified-with-jest


Jest Crash Course - Learn How to Test your JavaScript Application

project: jest-crashcourse-by-laith-academy


Mock vs Spy in Testing with Jest: Which is Better?

project: jest-mock-vs-spy-mohokh67


React unit testing with Jest & React-testing-library

project:


Unit Testing in React with Jest - Mock, Snapshots and more

projects:


Test React Router using Jest & React Testing Library and Typescript

projects: tdd-in-react-router-with-ts-shoaibbhimani


Testing React Apps

projects:


Next.js unit tests with Jest and Testing Library typescript

projects:


End-To-End testing: React Testing with Playwright (Complete Tutorial)

projects:


Fast Unit Testing With Vitest

projects:


Testing with Vitest FREE COURSE

projects: unit-testing-library-with-vitest-and-js


Learn Vitest and Testing Library In 40 Minutes

projects:

  • Vitest-YT
    • This project creates vue components, but uses same vitest, hence it can be used as reference project

Next.js 15 Unit Testing with Jest and React Testing Library | Test Driven Development

projects:


How to use Vitest with Jest-DOM and React Testing Library

projects:


React Testing Tutorial- by Codevolution

instructor's git-hub repo: gopinav

projects: