React unit tests vs integration tests for components.
It’s worth mentioning both Enzyme and react-testing-library.
React testing library provides a clean and simple API which focuses on testing applications “as a user would”. This means an API returns HTML Elements rather than React Components with shallow rendering in Enzyme. It’s is a nice tool for writing integrational tests.
