Skip to content
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 '@storybook/react' from 'index.js' #1323

Closed
kurumkan opened this issue Jun 20, 2017 · 1 comment
Closed

Cannot find module '@storybook/react' from 'index.js' #1323

kurumkan opened this issue Jun 20, 2017 · 1 comment

Comments

@kurumkan
Copy link

I am trying to incorporate storyshots in my project.
I have this jest config:

"moduleFileExtensions": [
  "json",
  "js",
  "jsx"
],

Here is my test file content:

import React from 'react';
import renderer from 'react-test-renderer';
import initStoryshots from '@storybook/addon-storyshots';

import IconCell from './';
initStoryshots({
    framework: 'react'
});
test('iconcell', () => {
    expect(renderer.create(<IconCell size="normal" type="pause" />).toJSON()).toMatchSnapshot();
});

But it throws error:

Cannot find module '@storybook/react' from 'index.js'

The error thrown in node_modules/jest-resolve/build/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants