GraphQL & React tutorial (part 4/6)
Tom Coleman
728

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-storyshots
yarn add — dev react-test-renderer

Modify index.test.js as follows:

import initStoryshots from ‘@storybook/addon-storyshots’;
initStoryshots();

Show your support

Clapping shows how much you appreciated Glen Ihrig’s story.