mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
fix: fix issue where build would fail but exit as if oy passed
This commit is contained in:
parent
ea983179a4
commit
b61cfefc30
1 changed files with 5 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue