Questions about testing React components with the react-testing-library utility.
React Testing Library is a lightweight library for testing react components. This library is built on top of Testing Library, which can be used for a number of other frontend libraries/frameworks, such as vue, angular, and more.
Guiding Principle
The more your tests resemble the way your software is used, the more confidence they can give you.
The library tests on DOM Nodes, primarily using JSDOM/Jest rather than instances of React components