mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
Kill mocha test if not set to watch
This commit is contained in:
parent
9a14368170
commit
59e2b92dae
1 changed files with 3 additions and 0 deletions
|
|
@ -293,6 +293,9 @@ gulp.task('test:api', ['test:startServer', 'test:prepare:mongo'], (done) => {
|
|||
});
|
||||
|
||||
mocha.run((numberOfFailures) => {
|
||||
if (!process.env.RUN_INTEGRATION_TEST_FOREVER) {
|
||||
process.exit(numberOfFailures);
|
||||
}
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue