mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Ensure immediate output if just one test is run
This commit is contained in:
parent
db44d68e11
commit
d4b4c7e90c
@ -50,6 +50,14 @@ globby(patterns).then(paths => {
|
||||
process.stderr.write(chalk.red.bold('No test files matched\n\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
if (paths.length === 1) {
|
||||
const spawnDeferred = spawn('./bin/test', ['--require=sinon-bluebird', paths[0]], {
|
||||
env: { FORCE_COLOR: '1', PATH: process.env.PATH },
|
||||
});
|
||||
spawnDeferred.stdout.pipe(process.stdout);
|
||||
spawnDeferred.stderr.pipe(process.stderr);
|
||||
return spawnDeferred;
|
||||
}
|
||||
|
||||
const limit = pLimit(processesCount);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user