mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Adjust error handling for test task.
This commit is contained in:
@@ -362,9 +362,12 @@ gulp.task('test', ['test:all'], () => {
|
||||
`\x1b[36mPending: ${totals[2]}\t`
|
||||
);
|
||||
|
||||
if (totals[1] > 0) throw "ERROR: There are failing tests!"
|
||||
else {
|
||||
kill(server);
|
||||
kill(server);
|
||||
|
||||
if (totals[1] > 0) {
|
||||
console.error('ERROR: There are failing tests!');
|
||||
process.exit(1);
|
||||
} else {
|
||||
console.log('\n\x1b[36mThanks for helping keep Habitica clean!\x1b[0m');
|
||||
process.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user