mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 14:17:22 +01:00
fix: fix issue where build would fail but exit as if oy passed
This commit is contained in:
@@ -368,6 +368,11 @@ gulp.task('test', ['test:all'], () => {
|
||||
`\x1b[31mFailed: ${s.fail},\t`,
|
||||
`\x1b[36mPending: ${s.pend}\t`
|
||||
);
|
||||
|
||||
if (s.pass === 0) {
|
||||
console.error('ERROR: Detected a test suite with 0 passing tests. Something may be wrong causing the build to error.');
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
|
||||
console.log(
|
||||
|
||||
Reference in New Issue
Block a user