Is it possible to Mock components when using storyshots? I can't see any documentation to do it.
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!
Most helpful comment
Yes, it is possible. I mock several components for storyshots with Jest config:
Reference: https://github.com/MCS-Lite/mcs-lite/blob/master/packages/mcs-lite-ui/package.json#L30