From 9dafce711d5671e7306d037b27d7f34714c9acdb Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Mon, 13 Apr 2015 18:59:37 +0200 Subject: [PATCH] chore(build): gulp test.unit.cjs broken the second run Fixes #1311 --- gulpfile.js | 2 ++ 1 file changed, 2 insertions(+) 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() {}); });