-
Notifications
You must be signed in to change notification settings - Fork 82
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
chore(deps): migrate from enzyme to @testing-library/react #635
Conversation
c4b6d98
to
7971a4a
Compare
Deploy preview for forma-36-react-components ready! Built with commit 003c8ce https://deploy-preview-635--forma-36-react-components.netlify.app |
022c137
to
6e011f3
Compare
`gridColumnGap` -> `columnGap` `gridRowGap` -> `rowGap` Why did it work before? Not sure.
6e011f3
to
5a4b988
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, well done 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. We'll be able to deprecate InViewport soon, I wonder what peoples thoughts are on just removing the test so that we can completely get rid of Enzyme?
@m10l I'm for it, but I don't really have an idea of how much |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GREAT!
I vote for removing the enzyme test as @m10l suggested
bf3d539
to
9df4ffc
Compare
I've deleted the test and removed enzyme completely 👍 |
The test requires enzyme and isn't easy to refactor to testing-library
7dec859
to
003c8ce
Compare
Purpose of PR
Migrate from
enzyme
to@testing-library/react
. This is to align testing libraries used across components, to more quickly allow for major React upgrades, and to unblock #611.There's still a single component on enzyme,
InViewport.test.tsx
:These tests use enzyme's
instance()
which testing-library doesn't support:I'm not sure how to test it without rewriting the component completely, which defeats the purpose.
PR Checklist
readme.md
file(s)