From 591c80c9ed95765da7403e4040e9f6bc672172b6 Mon Sep 17 00:00:00 2001 From: "john.souza" Date: Thu, 14 Apr 2022 15:39:06 -0300 Subject: [PATCH] fix: fixed bug when excludedFiles were being treated like changedFiles and vice-versa. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5788a08..449ea65 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ function run() { let totalFinds = 0; let totalHits = 0; data.forEach((element) => { - if (shouldCalculateCoverageForFile(element['file'], excludedFiles, changedFiles)) { + if (shouldCalculateCoverageForFile(element['file'], changedFiles, excludedFiles)) { totalFinds += element['lines']['found']; totalHits += element['lines']['hit'];