From bf87e086a1a71921316b1afddde90f643906691a Mon Sep 17 00:00:00 2001 From: mimo Date: Fri, 1 Mar 2024 16:53:26 +0900 Subject: [PATCH] chore: add customSnapshotsDir --- .gitignore | 3 ++- .storybook/test-runner.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 20f85fc86..048346dfa 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ lerna-debug.log* /playwright/.cache/ # tests -__diff_output__ \ No newline at end of file +/__diff_output__ +/__image_snapshots__ \ No newline at end of file diff --git a/.storybook/test-runner.ts b/.storybook/test-runner.ts index 74c3d7ec2..dcc518aeb 100644 --- a/.storybook/test-runner.ts +++ b/.storybook/test-runner.ts @@ -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, })