mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
13 lines
314 B
JavaScript
13 lines
314 B
JavaScript
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';
|
|
import { render as renderer } from 'enzyme';
|
|
import serializer from 'enzyme-to-json';
|
|
|
|
initStoryshots({
|
|
framework: 'react',
|
|
configPath: __dirname,
|
|
test: multiSnapshotWithOptions({
|
|
renderer,
|
|
serializer,
|
|
}),
|
|
});
|