]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix coveralls (#7148)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Sat, 22 Feb 2020 19:36:05 +0000 (21:36 +0200)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2020 19:36:05 +0000 (14:36 -0500)
gulpfile.js
karma.conf.js

index 4aebb98736577596f13b83a2de116767d26cc0e3..f664042926f7f9a8c330f1e53220f77cd7b699f0 100644 (file)
@@ -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,
index 4372ee2b07ba6a764d9eaacd35d47f3dfc57c340..8fc9bfa525264c9ef7df81746214916682fb81fc 100644 (file)
@@ -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: {