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
Cannot find module 'react-test-renderer' from 'test-bodies.js' when running tests #1409
Comments
Fixed this by just explicitly adding the |
I'm having the same error, even after adding react-test-renderer |
Adding to the comment from @wallslide above - According to these docs,
(If using Angular or Vue you'll need another package; see the docs I link to.) |
the command Commands:
|
when I install this => npm install --save-dev react-test-renderer --legacy-peer-deps the testing works. |
I have
@storybook/react
3.1.7
installed. My project is based oncreact-react-app
. I setup storyshots based on the instructions here:https://github.com/storybooks/storybook/tree/master/addons/storyshots
First I added
@storybook/addon-storyshots
(version3.1.7
was installed), then I createdStoryshots.test.js
as instructed, and ranyarn run test
. My storybook config folder is the default one.I'm running it in a docker container whose base is the
node:7.9
docker image.The text was updated successfully, but these errors were encountered: