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
Mocking in storyshots #962
Comments
Yes, it is possible. I mock several components for storyshots with Jest config: "setupFiles": [
"<rootDir>/.storybook/storyshots-setup.js"
], // .storybook/storyshots-setup.js"
jest.mock('react-motion-ui-pack');
... Reference: https://github.com/MCS-Lite/mcs-lite/blob/master/packages/mcs-lite-ui/package.json#L30 |
Awesome, thanks! |
If you want to mock for the storyshots only you can put your mock above initStoryshots()
|
@horacio10x @evenchange4 I get the following error if I try to jest mock right before the initStoryshots();
|
Is it possible to Mock components when using storyshots? I can't see any documentation to do it.
The text was updated successfully, but these errors were encountered: