Best Practices for Writing Tests for React Apps


Learn best practices for writing maintainable and sustainable tests for your React apps.

Have you switched over to React’s hooks and are confused about how to test them? Are you tired of snapshot testing being the easiest way to ensure your components are ready to test? Tired of needing to put every one of your components into a Router and Store to get your unit tests to work? Here we take a closer look at testing with react-testing-library and how to balance this with your end-to-end tests as we explore this through React’s tutorial application. In the end, you will walk away with the knowledge to bring react-testing-library back to your project as well as new ideas to make testing Suck Less™ even if you are using another framework.