From 36e300b3173df2d0fe720b5470973e88d8af1f03 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 13 Mar 2026 14:14:20 -0700 Subject: [PATCH] Print dots during parallel execution --- src/cli/index.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {