We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b7c7f commit e8f949aCopy full SHA for e8f949a
1 file changed
src/index.js
@@ -57,9 +57,9 @@ function checkResult({
57
} else {
58
({ pass } = result);
59
60
- updateSnapshotState(snapshotState, { matched: snapshotState.matched + 1 });
61
-
62
- if (!pass) {
+ if (pass) {
+ updateSnapshotState(snapshotState, { matched: snapshotState.matched + 1 });
+ } else {
63
const currentRun = timesCalled.get(snapshotIdentifier);
64
if (!retryTimes || (currentRun > retryTimes)) {
65
updateSnapshotState(snapshotState, { unmatched: snapshotState.unmatched + 1 });
0 commit comments