mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Add gulp test:api:watch
This commit is contained in:
@@ -77,6 +77,17 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
|||||||
pipe(runner);
|
pipe(runner);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('test:api:clean', (cb) => {
|
||||||
|
pipe(exec(testBin("mocha test/api"), () => cb()));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('test:api:watch', [
|
||||||
|
'test:prepare:mongo',
|
||||||
|
'test:api:clean'
|
||||||
|
], () => {
|
||||||
|
gulp.watch(['website/src/**', 'test/api/**'], ['test:api:clean']);
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task('test:karma', ['test:prepare:build'], (cb) => {
|
gulp.task('test:karma', ['test:prepare:build'], (cb) => {
|
||||||
let runner = exec(
|
let runner = exec(
|
||||||
testBin('karma start --single-run'),
|
testBin('karma start --single-run'),
|
||||||
|
|||||||
Reference in New Issue
Block a user