From 7f87eac3999bc2661e53cf742df7a78fd59d37ae Mon Sep 17 00:00:00 2001 From: Liuying Zhang Date: Thu, 14 Mar 2024 15:27:50 +0800 Subject: [PATCH] add logs --- dest/index.js | 1 + src/DiffChecker.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dest/index.js b/dest/index.js index 29eee33..968a5d7 100644 --- a/dest/index.js +++ b/dest/index.js @@ -15421,6 +15421,7 @@ class DiffChecker { const newFileWithoutCoverage = noOldCoverage && noNewCoverage && this.checkOnlyAddedFiles(file); const fileCoverageChanged = values.some((part) => part.oldPct !== part.newPct && !this.isDueToRemovedLines(part)); + console.log(file, values, fileCoverageChanged, newFileWithoutCoverage) if (newFileWithoutCoverage || fileCoverageChanged) { return 1; } diff --git a/src/DiffChecker.js b/src/DiffChecker.js index dadc87b..c44ceb2 100644 --- a/src/DiffChecker.js +++ b/src/DiffChecker.js @@ -300,6 +300,7 @@ export class DiffChecker { const newFileWithoutCoverage = noOldCoverage && noNewCoverage && this.checkOnlyAddedFiles(file); const fileCoverageChanged = values.some((part) => part.oldPct !== part.newPct && !this.isDueToRemovedLines(part)); + console.log(file, values, fileCoverageChanged, newFileWithoutCoverage) if (newFileWithoutCoverage || fileCoverageChanged) { return 1; }