From 1d3abd394b4aa9eeada863ebb6785360a430204b Mon Sep 17 00:00:00 2001 From: j3rem1e Date: Mon, 1 Mar 2021 12:48:04 +0100 Subject: [PATCH] Fix storyshots integrity options --- stories/svelteshots.test.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/stories/svelteshots.test.js b/stories/svelteshots.test.js index db010197..704f1864 100644 --- a/stories/svelteshots.test.js +++ b/stories/svelteshots.test.js @@ -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(), });