Migrate tests from enzyme
to react-testing-library
#2325
Labels
engineering
Engineering
epic
Large unit of work, consisting of multiple tasks
maintenance
Routine upkeep necessary for the health of the platform
raccoon-gang
During upgrade to React 18 it was discovered that
enzyme
has no support for React 18 and it breaks a lot of our tests. Furthermore, there is no plans of makingeznyme
adapter for React 18, meaning our tests will never pass with React 18 (unless we use some unofficial adapter like this one, which we really shouldn't be doing).We can solve this problem by fully migrating our tests to react-testing-library and/or react-test-renderer, which we already use in a bunch of our tests. React-testing-library supports React 18 starting from v13.0.0 and nowadays it is recommended tool for testing React applications. This would unblock our upgrade to React 18.
AC
The text was updated successfully, but these errors were encountered: