mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +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
|
// with react-test-renderer
|
||||||
initStoryshots({
|
initStoryshots({
|
||||||
framework: 'react',
|
framework: 'react',
|
||||||
|
integrityOptions: { cwd: __dirname },
|
||||||
configPath: path.join(__dirname, '..', '.storybook'),
|
configPath: path.join(__dirname, '..', '.storybook'),
|
||||||
test: multiSnapshotWithOptions({}),
|
test: multiSnapshotWithOptions({}),
|
||||||
});
|
});
|
||||||
|
@ -3,6 +3,7 @@ import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-story
|
|||||||
|
|
||||||
initStoryshots({
|
initStoryshots({
|
||||||
framework: 'angular',
|
framework: 'angular',
|
||||||
|
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
||||||
configPath: path.join(__dirname, '.storybook'),
|
configPath: path.join(__dirname, '.storybook'),
|
||||||
test: multiSnapshotWithOptions({}),
|
test: multiSnapshotWithOptions({}),
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,7 @@ configure({ adapter: new Adapter() });
|
|||||||
initStoryshots({
|
initStoryshots({
|
||||||
framework: 'react',
|
framework: 'react',
|
||||||
configPath: path.join(__dirname, '..', '.storybook'),
|
configPath: path.join(__dirname, '..', '.storybook'),
|
||||||
|
integrityOptions: { cwd: path.join(__dirname, 'stories') },
|
||||||
test: multiSnapshotWithOptions({
|
test: multiSnapshotWithOptions({
|
||||||
renderer,
|
renderer,
|
||||||
serializer,
|
serializer,
|
||||||
|
@ -7,6 +7,7 @@ import serializer from 'enzyme-to-json';
|
|||||||
initStoryshots({
|
initStoryshots({
|
||||||
framework: 'react',
|
framework: 'react',
|
||||||
configPath: path.join(__dirname, '../'),
|
configPath: path.join(__dirname, '../'),
|
||||||
|
integrityOptions: { cwd: path.join(__dirname, '..', 'stories') },
|
||||||
test: multiSnapshotWithOptions({
|
test: multiSnapshotWithOptions({
|
||||||
renderer,
|
renderer,
|
||||||
serializer,
|
serializer,
|
||||||
|
@ -4,5 +4,6 @@ import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-story
|
|||||||
initStoryshots({
|
initStoryshots({
|
||||||
framework: 'vue',
|
framework: 'vue',
|
||||||
configPath: path.join(__dirname, '.storybook'),
|
configPath: path.join(__dirname, '.storybook'),
|
||||||
|
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
||||||
test: multiSnapshotWithOptions({}),
|
test: multiSnapshotWithOptions({}),
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user