Testing React apps well is less about knowing the syntax of React Testing Library and Jest and more about knowing what to test and why. This course works through that judgment using a hands-on, project-driven approach rather than isolated examples.
Why testing matters
- Smaller, easier-to-reason-about codebases
- Confidence to deploy without manually re-checking everything
- The ability to verify one part of an app without disrupting the rest
- Teams that can work independently without stepping on each other
- Room to change code without quietly breaking existing behavior
What you'll build
You'll start with a small practice project to get comfortable with the basics, then build a series of interactive cheatsheets that double as future references while you work through React Testing Library's full feature set. From there you move on to testing a larger app that includes authentication, data fetching, and navigation — the areas that tend to trip people up most.
Topics along the way
Custom Jest matchers, debugging failing tests, faking data-fetching for faster test runs, the ARIA role system for more resilient element selection, mocking functions and libraries with Jest, handling third-party libraries in tests, and demystifying React's act function.