Skip to content

Commit

Permalink
Fix storyshots integrity options
Browse files Browse the repository at this point in the history
  • Loading branch information
j3rem1e committed Mar 1, 2021
1 parent 0d67b0c commit a655daf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stories/svelteshots.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import path from 'path';
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';
import initStoryshots, {
multiSnapshotWithOptions,
Stories2SnapsConverter,
} from '@storybook/addon-storyshots';

initStoryshots({
framework: 'svelte',
configPath: path.join(__dirname, '../.storybook'),
integrityOptions: { cwd: path.join(__dirname) },
integrityOptions: { cwd: __dirname },
stories2snapsConverter: new Stories2SnapsConverter({ storiesExtensions: ['.js', '.svelte'] }),
test: multiSnapshotWithOptions(),
});

0 comments on commit a655daf

Please sign in to comment.