Can't run on react-addons-test-utils@15.4.0-rc.3
See original GitHub issueHi I update my react-addons-test-utils to 15.4.0-rc.3, that the error occurs when I run npm test
.
ERROR in .//react-element-to-jsx-string//react-addons-test-utils/index.js Module not found: Error: Can’t resolve ‘react/lib/ReactTestUtils’ in ‘/Users/Welly/Desktop/react-cool-starter/node_modules/react-element-to-jsx-string/node_modules/react-addons-test-utils’ @ .//react-element-to-jsx-string//react-addons-test-utils/index.js 1:17-52 @ .//react-element-to-jsx-string/index-dist.js @ .//chai-enzyme/build/assertions/contain.js @ ./~/chai-enzyme/build/index.js @ ./tools/testing/test-bundler.js
Any solution for this?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Setting up Jest and Enzyme to test React 15 cannot find ...
I have installed the following dependencies: react-addons-test-utils 15.3.2; react 15.4.0-rc.4; react-dom 15.4.0-rc ...
Read more >Test Utilities - React
ReactTestUtils makes it easy to test React components in the testing framework of your choice. At Facebook we use Jest for painless JavaScript...
Read more >react-addons-css-transition-group | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Setting up Jest & Enzyme in a Meteor.js (and Apollo) Project
Lets go to package.json and add our test script. Change this: "test": "npm run lint". To this:
Read more >react-addons-test-utils - npm
This package provides the React TestUtils add-on.. Latest version: 15.6.2, last published: 5 years ago. Start using react-addons-test-utils ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is not the same issue (notice the module name is different from the one in the thread). Please update to React 15.5.4, and it will be fixed.
For future reference please report issues in RCs to us 😃. This is the reason we publish them.