From fde596edf5b6ccaa6681fb4c340c312bc639966b Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Wed, 1 May 2019 01:08:27 +0800 Subject: [PATCH] feat: foreground-child's done() method was not being called (#82) --- bin/c8.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/c8.js b/bin/c8.js index 719272c8..947f1cff 100755 --- a/bin/c8.js +++ b/bin/c8.js @@ -27,8 +27,9 @@ let argv = buildYargs().parse(instrumenterArgs) } process.env.NODE_V8_COVERAGE = argv.tempDirectory - foreground(hideInstrumenterArgs(argv), () => { + foreground(hideInstrumenterArgs(argv), done => { outputReport(argv) + done() }) } })()