Skip to content

Commit

Permalink
Log image diff even on success
Browse files Browse the repository at this point in the history
Useful for debugging.

Fixes jaredpalmer#132
  • Loading branch information
lexanth committed Sep 29, 2021
1 parent df2f147 commit 6b0774b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ export function matchImageSnapshotCommand(defaultOptions) {
} else {
Cypress.log({ message });
}
} else {
Cypress.log({ message: getPixelDiff(diffRatio, diffPixelCount) });
}
}
);
Expand Down

0 comments on commit 6b0774b

Please sign in to comment.