mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Error when no test files where matched
This commit is contained in:
parent
8fcfee6168
commit
7cb80fb018
@ -46,6 +46,11 @@ const run = path => {
|
||||
};
|
||||
|
||||
globby(patterns).then(paths => {
|
||||
if (!paths.length) {
|
||||
process.stderr.write(chalk.red.bold('No test files matched\n\n'));
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const limit = pLimit(processesCount);
|
||||
|
||||
return Promise.all(paths.map(path => limit(() => run(path))));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user