mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-06 09:30:37 +02:00
18 lines
406 B
JavaScript
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;
|