-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Mounting stateless functional components failing with ''Element appears to be neither ReactComponent nor DOMNode error' #356
Comments
@michael-wolfenden can you share the stack trace for the invariant error? |
Stacktrace
ReproducingYou can see the repo that has the issue here at: You can also reproduce the issue by changing shallow to mount in the file below and running |
Thanks @michael-wolfenden I was able to reproduce the error following those instructions. I'll check this out today. |
So to clarify the issue, the component mounts fine, but calling |
I was able to reproduce this with the It seems like React isn't recognizing this as a component that should be built using |
Problem
I am trying to test the following stateless functional component
with the following test
and am getting the following error
Versions
enzyme: 2.2.0
karma: 0.13.22
phantomjs-prebuilt: 2.1.7
react: 15.0.2
The text was updated successfully, but these errors were encountered: