Skip to content

Commit

Permalink
fix for promise resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Sep 25, 2024
1 parent 730de44 commit d45c855
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/reports/raw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
17 changes: 13 additions & 4 deletions test/snapshot/cli.snapshot.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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"
}
}
}

0 comments on commit d45c855

Please sign in to comment.