With a very little API surface,
react-testing-library offers a great productivity boost and makes testing reliable and simple with very little effort.
- auto cleanup of the DOM before and after the tests
- debug utilities
- great error messages
- handle the usage of
- powerful APIs for
- play nice with other libraries
react-testing-library makes avoiding implementation-details "the easy path" rather than something we should only follow as a Rule.
Avoiding to test implementation details is hard to implement in the end and
react-testing-library, offering utilities to query components, interact with them and make assertions in a is very natural way, allows to make interactions as the user would a lot simpler.
Author: Jaga Santagostino