Skip to content

Commit e8f949a

Browse files
authored
fix: incorrect stats reported to jest (#257)
1 parent 99b7c7f commit e8f949a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ function checkResult({
5757
} else {
5858
({ pass } = result);
5959

60-
updateSnapshotState(snapshotState, { matched: snapshotState.matched + 1 });
61-
62-
if (!pass) {
60+
if (pass) {
61+
updateSnapshotState(snapshotState, { matched: snapshotState.matched + 1 });
62+
} else {
6363
const currentRun = timesCalled.get(snapshotIdentifier);
6464
if (!retryTimes || (currentRun > retryTimes)) {
6565
updateSnapshotState(snapshotState, { unmatched: snapshotState.unmatched + 1 });

0 commit comments

Comments
 (0)