diff --git a/gulpfile.js b/gulpfile.js index 8801d1908b6f..6e756c1c4ce2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -684,6 +684,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, "/"); @@ -701,6 +702,7 @@ gulp.task('test.unit.cjs', ['build.js.cjs'], function () { delete require.cache[id]; } } + global.assert = undefined; runSequence('test.unit.cjs/ci', function() {}); });