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

Styled Components v4 Support #1

Closed
cneeson opened this issue Dec 13, 2018 · 3 comments
Closed

Styled Components v4 Support #1

cneeson opened this issue Dec 13, 2018 · 3 comments

Comments

@cneeson
Copy link

cneeson commented Dec 13, 2018

Hi there, thanks for packaging up these helpers, they are awesome.

These helpers (or variants of them) have successfully been used to wrap components for testing from styled-components v2 and v3.

The project I am currently working on is locked to the newest version of styled-components (v4), the version for which these utils don't work.

The exact error is here whereby the getChildContext function no longer behaves.

I am wondering if you have developed any utils to solve the issue that aren't published?

Thanks!

@byrekt
Copy link
Owner

byrekt commented May 21, 2019

Just seeing this now but we've run into the same issue at the company I work for. Unfortunately there is some work that needs to be done on enzyme's side related to context in order for me to resolve this issue. :(

@cneeson
Copy link
Author

cneeson commented May 21, 2019

No problem at all, thanks for getting back to me!

@byrekt
Copy link
Owner

byrekt commented Aug 16, 2019

@cneeson this should be resolved now. I published v3 which makes use of the wrappingComponent option added in 3.10 of enzyme.

styled-components/jest-styled-components#256

@byrekt byrekt closed this as completed Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants