Skip to content

Commit

Permalink
build: set visual regression method to ssim
Browse files Browse the repository at this point in the history
ssim produces less false positives than pixelmatch
  • Loading branch information
DanConwayDev committed Sep 30, 2023
1 parent f3da9bd commit eb0a284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .storybook/test-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const config: TestRunnerConfig = {
expect(image).toMatchImageSnapshot({
customSnapshotsDir,
customSnapshotIdentifier: context.id,
comparisonMethod: 'ssim',
failureThresholdType: 'percent',
failureThreshold: 0.002,
});
Expand Down

0 comments on commit eb0a284

Please sign in to comment.