-
Notifications
You must be signed in to change notification settings - Fork 13
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
Remove Enzyme from tests #173
Comments
@karlrez I think you need to comment this issue so I can assign it to you |
@gsambrotta ok, lets see if you can assign me now |
Yepp! I manage now :) Thank you Karl |
Hey @gsambrotta, a couple questions on this. For example in
I also find the jest-dom package can be useful for the tests with images, as the |
Hi @karlrez! To me seems that the 3 approaches you wrote are very similar in logic, just the way how you write the code is slightly different. Personally, I like better approach n.2 because to me is easier to read (in "english style") Anyway, we can totally add |
I finally manage to fix all the dependencies to React 17.0.2 so we should be ok with waiting a couple of weeks before upgrading to react 18.
In order to upgrade to React 18 we need to get rid of Enzyme test utility.
We are already using React Testing library for most of the tests
Therefore we need to change some test case from Enzyme to react testing library.
Goal:
Please check in each test file where Enzyme is still used.
Here is a list of the test file I found so far that still include Enzyme:
AllResultsView
Footer
SubscribeForm
ImagesView
ButtonPrimary
Header
Hero
Map
NewsView
SearchBar
Toast
Tooltip
app
For any questions, feel free to ask me
The text was updated successfully, but these errors were encountered: