storybook/addons/storyshots/stories/storyshot.shallowWithOptions.test.js

15 lines
306 B
JavaScript

import path from 'path';
import initStoryshots, { shallowSnapshot } from '../src';
initStoryshots({
framework: 'react',
configPath: path.join(__dirname, '..', '.storybook'),
test: data =>
shallowSnapshot({
...data,
options: {
serializer: JSON.stringify,
},
}),
});