Adjust image snapshot threshold for local & CI tests

This commit is contained in:
John Hildenbiddle
2020-07-23 01:15:58 -04:00
parent ba80d569ed
commit dfa5b54652
+3
View File
@@ -1,6 +1,9 @@
const { configureToMatchImageSnapshot } = require('jest-image-snapshot');
const toMatchImageSnapshot = configureToMatchImageSnapshot({
customDiffConfig: {
threshold: 0.1,
},
customSnapshotIdentifier(data) {
return `${data.defaultIdentifier}-${browserName}`;
},