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 not difficult, but did you know there's a solution that doesn't involve testing state directly?
React, Testing · Jun 12, 2021
Testing React components that update asynchronously is pretty common. Learn how to deal with common issues and speed up your testing.
React, Testing · Nov 7, 2021
Testing React components that use portals can be difficult until you understand what you really need to be testing.
React, Testing · Mar 13, 2022
Testing Redux-connected components is pretty common. Learn how to use this simple utility function to speed up your testing.
React, Testing · Nov 7, 2021