bruderstein / unexpected-react

Plugin for http://unexpected.js.org to enable testing the full React virtual DOM, and also the shallow renderer
http://bruderstein.github.io/unexpected-react
MIT License
186 stars 19 forks source link

Getting error: Error: Cannot find module 'react-test-renderer/shallow' #47

Closed ezmiller closed 7 years ago

ezmiller commented 7 years ago

After upgrading to v4.1.0, I am getting the above error. Does anyone know what might be going on here? I am running my tests using mocha-webpack, and it kind of looks as though this error is arising as mocha-webpack tries to build the testing bundles...

ezmiller commented 7 years ago

I seem to have solved this temporarily by installing the react-test-render explicitly: npm i -D react-test-renderer.

bruderstein commented 7 years ago

react-test-renderer is now a peerDep of unexpected-react from version 5.