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

Replace Enzyme with React Testing Library #50

Closed
srodrigo opened this issue Jun 19, 2021 · 0 comments
Closed

Replace Enzyme with React Testing Library #50

srodrigo opened this issue Jun 19, 2021 · 0 comments
Assignees
Labels
chore Task that is not a feature but is not a refactoring either

Comments

@srodrigo
Copy link
Owner

srodrigo commented Jun 19, 2021

Enzyme doesn't officially support for React 17 yet and they don't recommend using React 17. Also, the project is maintained by a single developer at the moment https://github.com/enzymejs/enzyme/issues/2429#issuecomment-858010582

There are no plans yet to support React 18 https://github.com/enzymejs/enzyme/issues/2524#issuecomment-860784387
While it's still an Alpha version, the fact that Enzyme is stuck at React 17 and the project is effectively under maintained, with just a single developer and a pile of issues logged, doesn't look good.

React Testing Library doesn't quite fit as a unit testing library, but at least it's in active development and doesn't break as much when new versions of React come up. Given Enzyme is falling behind almost two major versions already with no resolution in sight, makes it unsuitable for a project like this, partially aimed at using the latest tech for learning purposes while hopefully still building a cool app.

@srodrigo srodrigo self-assigned this Jun 19, 2021
@srodrigo srodrigo added the chore Task that is not a feature but is not a refactoring either label Jun 19, 2021
srodrigo added a commit that referenced this issue Jun 19, 2021
Enzyme is falling behind regarding support of new versions of React
(particularly React 17). Therefore, trying React Testing Library to see
whether it provides a better overall unit/integration testing
experience.
srodrigo added a commit that referenced this issue Jun 19, 2021
Enzyme is falling behind regarding support of new versions of React
(particularly React 17). Therefore, trying React Testing Library to see
whether it provides a better overall unit/integration testing
experience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Task that is not a feature but is not a refactoring either
Projects
None yet
Development

No branches or pull requests

1 participant