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