Jul 29, 2017 · 1 min read
After following the “Snapshot testing” section if you get this error:
`FAIL src/index.test.js ● Test suite failed to run
Cannot find module ‘@kadira/storybook-addons’ from ‘index.js’
Replace
yarn add — dev @storybook/addons
With
yarn add — dev @storybook/addon-storyshotsyarn add — dev react-test-renderer
Modify index.test.js as follows:
import initStoryshots from ‘@storybook/addon-storyshots’; initStoryshots();