Browse Source

build: set visual regression method to ssim

ssim produces less false positives than pixelmatch
master
DanConwayDev 2 years ago
parent
commit
eb0a284f2c
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 1
      .storybook/test-runner.ts

1
.storybook/test-runner.ts

@ -21,6 +21,7 @@ const config: TestRunnerConfig = { @@ -21,6 +21,7 @@ const config: TestRunnerConfig = {
expect(image).toMatchImageSnapshot({
customSnapshotsDir,
customSnapshotIdentifier: context.id,
comparisonMethod: 'ssim',
failureThresholdType: 'percent',
failureThreshold: 0.002,
});

Loading…
Cancel
Save