Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Commit 7fb9c45

Browse files
Image comparison: disable largeImageThreshold
This "feature" makes the output nearly unusable and ironically significantly larger (at the benefit of saving ~20% of runtime) Set the number high enough that we'll never hit it.
1 parent cc4c994 commit 7fb9c45

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/compareImages.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ module.exports = function() {
2323
/**
2424
* compare images
2525
*/
26-
var diff = resemble(this.baselinePath).compareTo(this.regressionPath);
26+
var diff = resemble(this.baselinePath)
27+
// This feature makes the output nearly worthless and impossible to read.
28+
// Set it high enought that we never hit it.
29+
.outputOptions({largeImageThreshold:1000000000})
30+
.compareTo(this.regressionPath);
2731

2832
/**
2933
* map 'ignore' configuration to resemble options

0 commit comments

Comments
 (0)