diff --git a/src/cli/index.ts b/src/cli/index.ts index 2140ee8..5cf1080 100755 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -220,11 +220,12 @@ program } if (opts.parallel) { - const all = await Promise.all(files.map(f => runOne(f, nextPort++))) - for (const r of all) { + const promises = files.map(async f => { + const r = await runOne(f, nextPort++) printDots(r) - results.push(r) - } + return r + }) + results.push(...await Promise.all(promises)) process.stdout.write("\n") } else { for (const filePath of files) {