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
No style rules found on passed Component - Enzyme - styled() #234
Comments
I'm having a similar issue and this may not be related but I did notice you're missing a
|
@rossmoody : thx for the reply, you're right, i forgot it in my example code when i "copy /paste" it |
I also having similar issues when performing snapshot test in my project and it only happen to custom component that being wrapped by
The following is my test case on the component:
I am not sure whether this is an issue for enzyme or this plugin, anyone can help? |
After doing some research on the issue board, I found this can be related to #191 |
@guillaumekick When I see this error it's usually because the |
I have set up and have "No style rules found on passed Component" |
This issue was driving me crazy, using the latest versions of SC and JSC. Working fine now after installing |
I have the same issue now and I'm running |
You have to wrap your styled component in a react component for some reason for it to work...
If I just try to shallow render EDIT: This doesn't seem to work all the time.... |
Could also be because of how the class names are detected. |
Hi,
I hope that someone could explain why the followinh test is failed with error "No style rules found on passed Component".
Thank you for yours replies
The text was updated successfully, but these errors were encountered: