-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-examine unit test tooling and patterns #654
Comments
Hello @joshuarrrr, I think that's a good idea. The answers to why we need this and how we can migrate tests are pretty well described in the official
|
+1 I think its necessary mainly because enzyme is dead (Ref) If we want to move to Node 18, this is a necessary upgrade. Some of the initial investigation we need to do here is how many tests are we talking about? Based on the last CI run i see 3067 tests and 301 test suites. There are also 254 references of enzyme in the codebase. My initial suggestion is the following steps:
Since react 18 forced the hands of many libraries to do a similar migration, there are plenty of articles out there explaining each of their approaches. e.g. https://blog.sentry.io/2023/02/23/sentrys-frontend-tests-migrating-from-enzyme-to-react-testing-library/ This will likely be a multistep migration, so we need to break it down into manageable subtasks |
For example, do we want to continue forward with enzyme, or is it worth the effort to add
react-testing-library
?The text was updated successfully, but these errors were encountered: