-
Notifications
You must be signed in to change notification settings - Fork 54
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
Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. #24
Comments
Work in progress here : https://github.com/lc3t35/react-kronos/tree/storybook
|
Hi @lc3t35, did you try to run the same test but without the specs addon? I mean using only jest and enzyme for example? Did you have the same error? |
I don't know how to do that. |
Bonjour de Paris :) I'll will give it a try as soon as I can but I suspect this is more an issue between Enzyme and the I'll have a look. In the mean time you can also try to mount the component using the Test Utilities https://facebook.github.io/react/docs/test-utils.html from facebook. |
After spending a bunch of time solving the initial setup with addons.js, webpack.config.js in .storybook, json in package.json so enzyme would work ...
Here is the index.js in stories/ i've built to use specs for testing react-kronos :
It generates the following error in SPECIFICATIONS and console
Any idea ?
The text was updated successfully, but these errors were encountered: