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
Update to styled-components v4 #444
Comments
It looks like jest-styled-components is still not compatible with v4. I tried using
Although it seems like the relevant issues have been closed in enzyme, I think we're waiting on enzyme to actually release these updates. I've pushed up a branch |
I wonder if we should consider dumping enzyme in favor of react-testing-library. I tried this example on one of our components and it came out perfectly. I really like the philosophy and it seems like the community as a whole is moving towards this library over enzyme. https://testing-library.com/docs/react-testing-library/intro |
If @tilleryd is on board, count me in. |
The thing I like about react-testing-library is a return to more traditional DOM testing i.e. testing what's rendered on the page. I never really liked testing props and state because testing the various DOM changes should cover them. @kaitmore I'd be ok replacing Enzyme but please only create a backlog issue for now. |
The text was updated successfully, but these errors were encountered: