Replace enzyme with react-testing-library
darekkay opened this issue · 1 comments
darekkay commented
React Testing Library encourages better, user-centered tests instead of the Enzyme way to test implementation details.
I've introduced a few tests using react-testing-library already, especially for custom hooks (which Enzyme doesn't handle well).
Subtasks
- Rewrite all enzyme tests with react-testing-library
- Remove enzyme
- Improve test coverage by writing more (useful) tests
- Include eslint-plugin-testing-library
- Fix all act warnings (probably solved automatically by removing enzyme tests)
Resources:
darekkay commented
It's done 😊