diff --git a/src/main.ts b/src/main.ts index 433a4e6..d16bf40 100644 --- a/src/main.ts +++ b/src/main.ts @@ -42,19 +42,19 @@ async function run(): Promise { console.log({codeCoverageNew}) console.log({codeCoverageOld}) console.log({entries}) - const resolvedCodeCoverageOld = entries.reduce((acc, [key, value]) => { - if (codeCoverageNew[key]) { - acc[key] = value - } - return acc - }, initAcc) - console.log({resolvedCodeCoverageOld}) + // const resolvedCodeCoverageOld = entries.reduce((acc, [key, value]) => { + // if (codeCoverageNew[key]) { + // acc[key] = value + // } + // return acc + // }, initAcc) + // console.log({resolvedCodeCoverageOld}) const currentDirectory = execSync('pwd') .toString() .trim() const diffChecker: DiffChecker = new DiffChecker( codeCoverageNew, - resolvedCodeCoverageOld + codeCoverageOld ) let messageToPost = `## Test coverage results :test_tube: \n Code coverage diff between base branch:${branchNameBase} and head branch: ${branchNameHead} \n\n`