From 6b0774b1f0a75a0c2dfc58a6d16a543c4f1f2d7b Mon Sep 17 00:00:00 2001 From: Alex Anthony Date: Wed, 29 Sep 2021 11:28:32 +0100 Subject: [PATCH] Log image diff even on success Useful for debugging. Fixes https://github.com/jaredpalmer/cypress-image-snapshot/issues/132 --- src/command.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command.js b/src/command.js index 234aebd..2e93b66 100644 --- a/src/command.js +++ b/src/command.js @@ -97,6 +97,8 @@ export function matchImageSnapshotCommand(defaultOptions) { } else { Cypress.log({ message }); } + } else { + Cypress.log({ message: getPixelDiff(diffRatio, diffPixelCount) }); } } );