The Solution
The Testing Library family of libraries is a very light-weight solution for testing without all the implementation details like –
- Internal state of a component
- Internal methods of a component
- Lifecycle methods of a component
- Child components
The main utilities it provides involve querying for nodes similarly to how users would find them. In this way, testing-library helps ensure your tests give you confidence in your UI code.