Testing React can be challenging, both in terms of figuring out the correct mentality as well as understanding the mechanics of the tools you're working with. This article collection aims to teach you the basics of testing React components in various scenarios using React Testing Library.
Testing stateful React components is by no means a difficult task, but did you know there is an elegant solution that doesn't involve testing state directly?
Testing React components that update asynchronously with React Testing Library is a common scenario. Learn how to deal with common issues and speed up your testing.
Testing Redux-connected components with React Testing Library is a very common scenario. Learn how to use this simple utility function to speed up your testing.