Print dots during parallel execution

This commit is contained in:
Chris Wanstrath 2026-03-13 14:14:20 -07:00
parent 24981c6cc0
commit 36e300b317

View File

@ -220,11 +220,12 @@ program
} }
if (opts.parallel) { if (opts.parallel) {
const all = await Promise.all(files.map(f => runOne(f, nextPort++))) const promises = files.map(async f => {
for (const r of all) { const r = await runOne(f, nextPort++)
printDots(r) printDots(r)
results.push(r) return r
} })
results.push(...await Promise.all(promises))
process.stdout.write("\n") process.stdout.write("\n")
} else { } else {
for (const filePath of files) { for (const filePath of files) {