Print dots during parallel execution
This commit is contained in:
parent
24981c6cc0
commit
36e300b317
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user