From 859aca6829c6809b898b742df2ae496246be39cd Mon Sep 17 00:00:00 2001 From: Zuki Sarusi Date: Wed, 22 Nov 2023 17:39:00 +0200 Subject: [PATCH] . --- dist/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1196e7d..484cc25 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6773,9 +6773,10 @@ class DiffChecker { return returnStrings; } checkIfTestCoverageFallsBelowDelta(delta) { - const keys = Object.keys(this.diffCoverageReport); - for (const key of keys) { - const diffCoverageData = this.diffCoverageReport[key]; + console.log({ diffCoverageReport: this.diffCoverageReport }); + const reportKeys = Object.keys(this.diffCoverageReport); + for (const reportKey of reportKeys) { + const diffCoverageData = this.diffCoverageReport[reportKey]; const keys = Object.keys(diffCoverageData); // No new coverage found so that means we deleted a file coverage const fileRemovedCoverage = Object.values(diffCoverageData).every(coverageData => coverageData.newPct === 0);