From bad7819badd69787ea8a0ee826ba9a36b3fdd3fe Mon Sep 17 00:00:00 2001 From: popomore Date: Sun, 28 Apr 2019 14:10:12 +0800 Subject: [PATCH 1/3] feat: force exit the process when completed --- bin/c8.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/c8.js b/bin/c8.js index 719272c8..f9828a76 100755 --- a/bin/c8.js +++ b/bin/c8.js @@ -29,6 +29,7 @@ let argv = buildYargs().parse(instrumenterArgs) process.env.NODE_V8_COVERAGE = argv.tempDirectory foreground(hideInstrumenterArgs(argv), () => { outputReport(argv) + process.exit(); }) } })() From f41118046d25f107ee23852ce6a314bfaa027aea Mon Sep 17 00:00:00 2001 From: popomore Date: Sun, 28 Apr 2019 14:35:26 +0800 Subject: [PATCH 2/3] f --- bin/c8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/c8.js b/bin/c8.js index f9828a76..65e11ec9 100755 --- a/bin/c8.js +++ b/bin/c8.js @@ -29,7 +29,7 @@ let argv = buildYargs().parse(instrumenterArgs) process.env.NODE_V8_COVERAGE = argv.tempDirectory foreground(hideInstrumenterArgs(argv), () => { outputReport(argv) - process.exit(); + process.exit() }) } })() From 931a5acb5f1e3013ccd858eedda80be84f6ecebd Mon Sep 17 00:00:00 2001 From: popomore Date: Mon, 29 Apr 2019 14:01:11 +0800 Subject: [PATCH 3/3] f --- bin/c8.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/c8.js b/bin/c8.js index 65e11ec9..947f1cff 100755 --- a/bin/c8.js +++ b/bin/c8.js @@ -27,9 +27,9 @@ let argv = buildYargs().parse(instrumenterArgs) } process.env.NODE_V8_COVERAGE = argv.tempDirectory - foreground(hideInstrumenterArgs(argv), () => { + foreground(hideInstrumenterArgs(argv), done => { outputReport(argv) - process.exit() + done() }) } })()