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) {
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) {