-
-
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
Enzyme break after React upgrade from 15.0.0-rc2 to 15.0.1 #325
Comments
same problem here |
I believe this was fixed by commit 77e6bdc. I have the same issue with v2.2.0, but it works when running master. Would be nice with an Enzyme release which works with React 15. |
That commit shouldn't have been able to impact anything, unless you're relying on npm 2 implicitly installing peer deps? |
Ok, that might not be the fix then. A release that works with React 15 out of the box is still wanted though :-) |
The latest release is already that. The only difference is potentially a peer dep warning. We'll try to cut a release soon. |
Deprecated CommonJS react/addons entry point was removed in React 15. https://facebook.github.io/react/blog/2016/04/07/react-v15.html resolves #enzymejs#325
Deprecated CommonJS react/addons entry point was removed in React 15. https://facebook.github.io/react/blog/2016/04/07/react-v15.html resolves enzymejs#325
Deprecated CommonJS react/addons entry point was removed in React 15. https://facebook.github.io/react/blog/2016/04/07/react-v15.html resolves enzymejs#325
…338) Deprecated CommonJS react/addons entry point was removed in React 15. https://facebook.github.io/react/blog/2016/04/07/react-v15.html resolves #325
Guys, can you please release new version ?, this commit would be great :) |
@nehaleem enzyme already works fine with React 15. The commit you're referencing is just documentation. |
…nzymejs#338) Deprecated CommonJS react/addons entry point was removed in React 15. https://facebook.github.io/react/blog/2016/04/07/react-v15.html resolves enzymejs#325
We are using enzyme to test our React components together with browserify.
But after upgrade React from rc2 to stable 15.0.1:
If i'll run tests, i'll get this error:
Error: Cannot find module 'react/addons' from '/myproject/node_modules/enzyme/build
But installed version is 15.0.1 (React.version) which is using module
react-addons-test-utils
If i'll remove this line:
TestUtils = require('react/addons').addons.TestUtils;
from
build\react-compat.js
its works properly.Package.json:
The text was updated successfully, but these errors were encountered: