mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Kill mocha test if not set to watch
This commit is contained in:
@@ -293,6 +293,9 @@ gulp.task('test:api', ['test:startServer', 'test:prepare:mongo'], (done) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mocha.run((numberOfFailures) => {
|
mocha.run((numberOfFailures) => {
|
||||||
|
if (!process.env.RUN_INTEGRATION_TEST_FOREVER) {
|
||||||
|
process.exit(numberOfFailures);
|
||||||
|
}
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user