diff --git a/src/DiffChecker.ts b/src/DiffChecker.ts index 4f96f05..429b83a 100644 --- a/src/DiffChecker.ts +++ b/src/DiffChecker.ts @@ -68,9 +68,10 @@ export class DiffChecker { } checkIfTestCoverageFallsBelowDelta(delta: number): boolean { - 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: ('lines' | 'statements' | 'branches' | 'functions')[] = < ('lines' | 'statements' | 'branches' | 'functions')[] >Object.keys(diffCoverageData)