Skip to content

Commit

Permalink
chore(build): gulp test.unit.cjs broken the second run
Browse files Browse the repository at this point in the history
  • Loading branch information
marclaval authored and mhevery committed Apr 13, 2015
1 parent 28ba179 commit ff6e775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ gulp.task('test.unit.cjs/ci', function () {
gulp.task('test.unit.cjs', ['build.js.cjs'], function () {
//Run tests once
runSequence('test.unit.cjs/ci', function() {});

//Watcher to transpile file changed
gulp.watch(CONFIG.transpile.src.js.concat(['modules/**/*.cjs']), function(event) {
var relPath = path.relative(__dirname, event.path).replace(/\\/g, "/");
Expand All @@ -723,6 +724,7 @@ gulp.task('test.unit.cjs', ['build.js.cjs'], function () {
delete require.cache[id];
}
}
global.assert = undefined; // https://github.com/angular/angular/issues/1340
runSequence('test.unit.cjs/ci', function() {});
});

Expand Down

0 comments on commit ff6e775

Please sign in to comment.