mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Add integrityOptions to storyshots with multiSnapshotWithOptions
This commit is contained in:
parent
3d128cd59b
commit
3326e19c9a
@ -4,6 +4,7 @@ import initStoryshots, { multiSnapshotWithOptions } from '../src';
|
||||
// with react-test-renderer
|
||||
initStoryshots({
|
||||
framework: 'react',
|
||||
integrityOptions: { cwd: __dirname },
|
||||
configPath: path.join(__dirname, '..', '.storybook'),
|
||||
test: multiSnapshotWithOptions({}),
|
||||
});
|
||||
|
@ -3,6 +3,7 @@ import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-story
|
||||
|
||||
initStoryshots({
|
||||
framework: 'angular',
|
||||
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
||||
configPath: path.join(__dirname, '.storybook'),
|
||||
test: multiSnapshotWithOptions({}),
|
||||
});
|
||||
|
@ -10,6 +10,7 @@ configure({ adapter: new Adapter() });
|
||||
initStoryshots({
|
||||
framework: 'react',
|
||||
configPath: path.join(__dirname, '..', '.storybook'),
|
||||
integrityOptions: { cwd: path.join(__dirname, 'stories') },
|
||||
test: multiSnapshotWithOptions({
|
||||
renderer,
|
||||
serializer,
|
||||
|
@ -7,6 +7,7 @@ import serializer from 'enzyme-to-json';
|
||||
initStoryshots({
|
||||
framework: 'react',
|
||||
configPath: path.join(__dirname, '../'),
|
||||
integrityOptions: { cwd: path.join(__dirname, '..', 'stories') },
|
||||
test: multiSnapshotWithOptions({
|
||||
renderer,
|
||||
serializer,
|
||||
|
@ -4,5 +4,6 @@ import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-story
|
||||
initStoryshots({
|
||||
framework: 'vue',
|
||||
configPath: path.join(__dirname, '.storybook'),
|
||||
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
||||
test: multiSnapshotWithOptions({}),
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user