From 4e80d78f485e15fd6e330da6238a2feb8130a29e Mon Sep 17 00:00:00 2001 From: Zuki Sarusi Date: Mon, 31 Jul 2023 14:50:37 +0300 Subject: [PATCH] . --- src/main.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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`