Skip to content

Commit

Permalink
Fix storyshots
Browse files Browse the repository at this point in the history
  • Loading branch information
j3rem1e committed Apr 6, 2022
1 parent 2c6511e commit b7a4798
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions stories/__snapshots__/interaction.stories.storyshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots Interactions Play 1`] = `
<section
class="storybook-snapshot-container"
>

<div>
<h1>
Counter
</h1>

<h2
data-testid="count"
>
You clicked
0
times
</h2>

<button
type="button"
>
Decrement
</button>

<button
type="button"
>
Increment
</button>
</div>


</section>
`;
4 changes: 3 additions & 1 deletion stories/svelteshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ initStoryshots({
framework: 'svelte',
configPath: path.join(__dirname, '../.storybook'),
integrityOptions: { cwd: __dirname },
stories2snapsConverter: new Stories2SnapsConverter({ storiesExtensions: ['.js', '.svelte'] }),
stories2snapsConverter: new Stories2SnapsConverter({
storiesExtensions: ['.js', '.svelte'],
snapshotsDirName: '../__snapshots__' }),
test: multiSnapshotWithOptions(),
});

0 comments on commit b7a4798

Please sign in to comment.