From: Jukka Kurkela Date: Sat, 22 Feb 2020 19:36:05 +0000 (+0200) Subject: Fix coveralls (#7148) X-Git-Tag: v3.0.0-alpha~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26ed1413acdea1faf414f5e78d573d362b55258;p=thirdparty%2FChart.js.git Fix coveralls (#7148) --- diff --git a/gulpfile.js b/gulpfile.js index 4aebb9873..f66404292 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -162,6 +162,8 @@ function docsTask(done) { } function unittestTask(done) { + // use `env.test` from `babel.config.json` for karma builds + process.env.NODE_ENV = 'test'; new karma.Server({ configFile: path.join(__dirname, 'karma.conf.js'), singleRun: !argv.watch, diff --git a/karma.conf.js b/karma.conf.js index 4372ee2b0..8fc9bfa52 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -67,7 +67,7 @@ module.exports = function(karma) { rollupPreprocessor: { plugins: [ resolve(), - babel({envName: 'test', exclude: 'node_modules/**'}), // use babel since we have ES proposal features + babel({exclude: 'node_modules/**'}), // use babel since we have ES proposal features commonjs() ], output: {