From 5c14c38c65c71a7cf3ad81106148e4ad9757ea87 Mon Sep 17 00:00:00 2001 From: Maiko Tan Date: Fri, 6 Dec 2024 15:00:25 +0800 Subject: [PATCH] fix: generate coverage report --- util/gen_coverage_report.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/gen_coverage_report.ts b/util/gen_coverage_report.ts index a2d6247bb7..cc25e0230a 100644 --- a/util/gen_coverage_report.ts +++ b/util/gen_coverage_report.ts @@ -196,9 +196,9 @@ const processOopsyFile = ( thisCoverage.oopsy = { num: numTriggers }; }; -const processOopsyCoverage = async (manifest: string, coverage: Coverage) => { - const manifestLines = findManifestFiles(manifest); - const dataDir = path.dirname(manifest); +const processOopsyCoverage = async (dir: string, coverage: Coverage) => { + const manifestLines = findManifestFiles(dir); + const dataDir = dir; for (const line of manifestLines) { if (!line.endsWith('.js') && !line.endsWith('.ts')) continue;