We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here is my test file code:
import React from 'react'; import { mount } from 'enzyme'; import renderer from 'react-test-renderer'; import initStoryshots from '@storybook/addon-storyshots'; import IconCell from './'; initStoryshots(); test('iconcell', () => { expect(renderer.create(<IconCell size="normal" type="pause" />).toJSON()).toMatchSnapshot(); });
jest configs has this:
"moduleFileExtensions": [ "json", "js", "jsx" ],
but it throws:
storyshots is intended only to be used with storybook at testStorySnapshots (node_modules/@storybook/addon-storyshots/dist/index.js:106:11)
The text was updated successfully, but these errors were encountered:
Is @storybook/react a dependency listed in your package.json?
@storybook/react
package.json
Sorry, something went wrong.
Hi there, I followed the instructions from here But the answer to your question - no, there is no such entry @storybook/react in my package json.
Hey @kurumkan -- did something go wrong when you ran getstorybook? It should have added that entry for you.
getstorybook
Maybe storyshots' error message could be better here?
Duplicate: #1323
I think both have been answered? Please let us know if you need further help?
No branches or pull requests
Here is my test file code:
jest configs has this:
but it throws:
The text was updated successfully, but these errors were encountered: