- Add tests to any incomplete projects from the inning.
- Go through the Async React Testing lesson. Fully test out the idea box, including happy and sad paths for all end points.
- Get the repo from the React Router lesson. Complete all routes on the app, then write integration and unit tests with a MemoryRouter. Then refactor all tests to use a Router and history object. Which do you prefer?
- Write unit and integration tests for every component in this PostIt App
- Tutorials:
- Article from Thomas Lombart overviewing basic unit and asynchonous tests in RTL.
- More in depth description of the RTL basics
- Writing Better Tests With RTL
- Documentation:
- DOM Testing Library Cheat Sheet - Queries, firing events, async utilities
- React Testing Library
- RTL + Router
- jest-dom
- user-event - can be useful for more complicated event-firing