Skip to content
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

ui: get rid of enzyme #657

Open
5 of 9 tasks
ioannistsanaktsidis opened this issue Jan 10, 2025 · 0 comments
Open
5 of 9 tasks

ui: get rid of enzyme #657

ioannistsanaktsidis opened this issue Jan 10, 2025 · 0 comments

Comments

@ioannistsanaktsidis
Copy link
Contributor

ioannistsanaktsidis commented Jan 10, 2025

NOTE: This issue will be addressed in multiple PRs as it is massive!

Description

We are heavily using enzyme in our tests. Enzyme is dead and is actually blocking the upgrade of React.
Nowadays we can achieve the same result by using RTL and jest. A good approach is to start first with the snapshots and continue with the rest of the tests. Another approach is to migrate slowly (per collection or whenever we touch a component, we rewrite the test). Strategy to be defined.

Work involved

  • Identify migration strategy
  • Identify the parts that are using enzyme
  • Refactor them to use RTL with Jest

Acceptance criteria

  • The tests work as before and no regression is introduced
  • No use of enzyme in the project

Subtasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant