Skip to content

Commit

Permalink
chore: add customSnapshotsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
mimokmt committed Mar 1, 2024
1 parent 2db7577 commit bf87e08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ lerna-debug.log*
/playwright/.cache/

# tests
__diff_output__
/__diff_output__
/__image_snapshots__
1 change: 1 addition & 0 deletions .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const config: TestRunnerConfig = {
expect(image).toMatchImageSnapshot({
customSnapshotIdentifier: context.id,
customDiffDir: `${process.cwd()}/__diff_output__`,
customSnapshotsDir: `${process.cwd()}/__image_snapshots__`,
failureThresholdType: 'percent',
failureThreshold: 0.001,
})
Expand Down

0 comments on commit bf87e08

Please sign in to comment.