From 44a0fd7b481c44e8eda436e302c001b157cebe9d Mon Sep 17 00:00:00 2001 From: cenfun Date: Thu, 21 Dec 2023 11:55:19 +0800 Subject: [PATCH] update v8-and-istanbul test --- test/test-v8.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test-v8.js b/test/test-v8.js index e5878889..4d3626aa 100644 --- a/test/test-v8.js +++ b/test/test-v8.js @@ -122,9 +122,9 @@ const generate = async () => { console.log('generate v8 coverage reports ...'); - const coverageResults1 = await new CoverageReport(coverageOptions).generate(); - console.log('reportPath', EC.magenta(coverageResults1.reportPath)); - console.log('v8 coverage generated', Object.keys(coverageResults1), coverageResults1.summary); + const coverageResults = await new CoverageReport(coverageOptions).generate(); + console.log('reportPath', EC.magenta(coverageResults.reportPath)); + console.log('v8 coverage generated', Object.keys(coverageResults.summary).map((k) => [k, coverageResults.summary[k].pct])); };