digitransit-ui/test/e2e/helpers/image-snapshot-config.js

18 lines
406 B
JavaScript

const getConfig = (
customSnapshotIdentifier,
customSnapshotsDir,
customDiffDir,
) => {
return {
diffDirection: 'vertical',
dumpDiffToConsole: false,
comparisonMethod: 'pixelmatch',
failureThreshold: process.env.UPDATE_E2E ? 0 : 0.0125,
failureThresholdType: 'percent',
customSnapshotsDir,
customDiffDir,
customSnapshotIdentifier,
};
};
export default getConfig;