Skip to content

Commit f31ff77

Browse files
authored
fix: treat byte diffs properly (#646)
1 parent e43afaa commit f31ff77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/visual-diff-reporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function flattenResults(session, browserData, fileData) {
101101
});
102102
}
103103
const testData = fileData.tests.get(testName);
104-
const bytediff = !t.passed && !!info?.diff && info?.pixelsDiff === 0;
104+
const bytediff = !t.passed && info?.diff === undefined && info?.pixelsDiff === 0;
105105
if (!t.passed) {
106106
if (bytediff) {
107107
browserData.numByteDiff++;

0 commit comments

Comments
 (0)