e2e: adjust snapshot failure threshold
Adjusting the failure threshold to 0.1% will reduce the
amount of test flake and is more than enough to capture
the sort of breakages we care about.
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
TryBot-Result: kokoro
@@ -9,6 +9,8 @@ import { configureToMatchImageSnapshot } from 'jest-image-snapshot';
// Extends jest to compare image snapshots.
const toMatchImageSnapshot = configureToMatchImageSnapshot({
+ failureThreshold: 0.1,
+ failureThresholdType: 'percent',
customSnapshotIdentifier: ({ defaultIdentifier, counter }) => {
return defaultIdentifier.replace('test-ts', '').replace(`-${counter}`, '');
},
