cli: Fix so it returns error code on failed tests
This commit is contained in:
parent
11135fde83
commit
96de2a5fbc
1 changed files with 4 additions and 1 deletions
5
cli.mjs
5
cli.mjs
|
@ -60,7 +60,10 @@ cli.processTargets().then(function() {
|
|||
printError(err)
|
||||
process.exit(1)
|
||||
})
|
||||
.then(function() {
|
||||
.then(function(stats) {
|
||||
if (stats.failed > 0) {
|
||||
process.exit(10)
|
||||
}
|
||||
process.exit(0)
|
||||
}, function(err) {
|
||||
console.error('\x1b[31mInternal error occured:\x1b[0m', err)
|
||||
|
|
Loading…
Reference in a new issue