This a workshop that covers the basics of testing React applications.
I recommend setup this project before the workshop.
Just follow these instructions:
- Clone this repo
- Install dependencies
npm install
- Start dev server with playground
npm start
Links to all of the tasks:
- Fundamentals of testing
- Testing React components
- Testing React components with async
- Integration testing
- Testing reusable component
- Testing hooks
- E2e testing with Cypress
In files of tasks you will find instructions and hints in code comments. Each task also has the solution defined, it is within the __solution__
folder. This folder is skipped during the test runs, but you are welcome to check out the code if you feel stuck.
In this repo inside /src
folder you will find representing each part of the workshop.
- Jest
- Testing Library
- React Testing Library
- Cypress
- Jest
- React Testing Library cheatsheet
- Testing library queries
- Kent C. Dodds's blog
I would really appreciate your anonymous feedback about the workshop!