mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 07:05:51 +00:00
Add watch task for karma test
This commit is contained in:
parent
45b7e9a7d2
commit
59068c17a2
1 changed files with 10 additions and 0 deletions
|
|
@ -141,6 +141,16 @@ gulp.task('test:api:watch', [
|
|||
gulp.watch(['website/src/**', 'test/api/**'], ['test:api:clean']);
|
||||
});
|
||||
|
||||
gulp.task('test:karma:watch', ['test:prepare:build'], (cb) => {
|
||||
let runner = exec(
|
||||
testBin('karma start'),
|
||||
(err, stdout) => {
|
||||
cb(err);
|
||||
}
|
||||
);
|
||||
pipe(runner);
|
||||
});
|
||||
|
||||
gulp.task('test:karma', ['test:prepare:build'], (cb) => {
|
||||
let runner = exec(
|
||||
testBin('karma start --single-run'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue