From eb0a284f2c14c20384d2a612598fabca4093b030 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Sun, 1 Oct 2023 00:00:00 +0100 Subject: [PATCH] build: set visual regression method to ssim ssim produces less false positives than pixelmatch --- .storybook/test-runner.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/.storybook/test-runner.ts b/.storybook/test-runner.ts index 98dad55..b8677e0 100644 --- a/.storybook/test-runner.ts +++ b/.storybook/test-runner.ts @@ -21,6 +21,7 @@ const config: TestRunnerConfig = { expect(image).toMatchImageSnapshot({ customSnapshotsDir, customSnapshotIdentifier: context.id, + comparisonMethod: 'ssim', failureThresholdType: 'percent', failureThreshold: 0.002, });