From dfa5b54652c3957b38f6bd355498f70d350c583f Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Thu, 23 Jul 2020 01:15:58 -0400 Subject: [PATCH] Adjust image snapshot threshold for local & CI tests --- tests/e2e/helpers/jest-image-snapshot.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/e2e/helpers/jest-image-snapshot.js b/tests/e2e/helpers/jest-image-snapshot.js index b92f2b4e..0cd4e725 100644 --- a/tests/e2e/helpers/jest-image-snapshot.js +++ b/tests/e2e/helpers/jest-image-snapshot.js @@ -1,6 +1,9 @@ const { configureToMatchImageSnapshot } = require('jest-image-snapshot'); const toMatchImageSnapshot = configureToMatchImageSnapshot({ + customDiffConfig: { + threshold: 0.1, + }, customSnapshotIdentifier(data) { return `${data.defaultIdentifier}-${browserName}`; },