tests/e2e: add alt color for image diffs
Update snapshot config to mask image diffs with colors. Green for
expected pixels and red for unexpected pixels.
Trust: Jamal Carvalho
@@ -26,6 +26,9 @@ const toMatchImageSnapshot = configureToMatchImageSnapshot({
failureThreshold: 0.001,
failureThresholdType: 'percent',
customSnapshotsDir: snapshotDir,
+ customDiffConfig: {
+ diffColorAlt: [0, 255, 0],
+ },
customSnapshotIdentifier: ({ defaultIdentifier, counter }) => {
return defaultIdentifier.replace('test-ts', '').replace(`-${counter}`, '');
},
