Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
zuki-linB committed Nov 22, 2023
1 parent 2d25613 commit 859aca6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 859aca6

Please sign in to comment.