From d45c855ec9773243bf47dfb29c201e4381e84b39 Mon Sep 17 00:00:00 2001 From: cenfun Date: Wed, 25 Sep 2024 17:59:42 +0800 Subject: [PATCH] fix for promise resolve --- lib/reports/raw.js | 2 ++ test/snapshot/cli.snapshot.json | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/reports/raw.js b/lib/reports/raw.js index 2b92241..873da84 100644 --- a/lib/reports/raw.js +++ b/lib/reports/raw.js @@ -42,6 +42,8 @@ const rawReport = (reportData, reportOptions, options) => { // remove raw files after zip Util.rmSync(rawDir); + resolve(); + // console.log('done'); }); const list = fs.readdirSync(rawDir); diff --git a/test/snapshot/cli.snapshot.json b/test/snapshot/cli.snapshot.json index c2cecff..05becc6 100644 --- a/test/snapshot/cli.snapshot.json +++ b/test/snapshot/cli.snapshot.json @@ -1,11 +1,11 @@ { "type": "v8", "summary": { - "bytes": "54.91 %", - "statements": "57.37 %", + "bytes": "54.66 %", + "statements": "57.07 %", "branches": "52.42 %", - "functions": "51.58 %", - "lines": "46.29 %" + "functions": "51.04 %", + "lines": "46.08 %" }, "files": { "test/mock/node/lib/app.js": { @@ -277,6 +277,15 @@ "bytes": "0.00 %", "uncoveredLines": "1-15", "extras": "6b,10b,16b" + }, + "test/mock/src/untest/中文.js": { + "functions": "0.00 %", + "branches": "", + "statements": "0.00 %", + "lines": "0.00 %", + "bytes": "0.00 %", + "uncoveredLines": "2-7", + "extras": "1c,3b,5c,8b" } } } \ No newline at end of file