mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 14:17:05 +00:00
Add gulp test:api:watch
This commit is contained in:
parent
981e1f553f
commit
10cb1d651a
1 changed files with 11 additions and 0 deletions
|
|
@ -77,6 +77,17 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
|
|||
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) => {
|
||||
let runner = exec(
|
||||
testBin('karma start --single-run'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue