summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-10-02 16:24:44 -0500
committerMike Greiling <mike@pixelcog.com>2018-10-02 16:24:44 -0500
commit7ab73173b6e3345535da363743fba6ceef21265a (patch)
treecef1cb762b4cf89b8231e29c254ae67de32b2c1b /config/karma.config.js
parent5f53269f0e4cb819c59ecd173496d6202feb7f7a (diff)
downloadgitlab-ce-7ab73173b6e3345535da363743fba6ceef21265a.tar.gz
Make DefinePlugin definitions more specific
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 7960bbf69ad..e1d7c30b1c2 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -22,11 +22,10 @@ webpackConfig.optimization.splitChunks = false;
// use quicker sourcemap option
webpackConfig.devtool = 'cheap-inline-source-map';
+// set BABEL_ENV to indicate when we're running code coverage
webpackConfig.plugins.push(
new webpack.DefinePlugin({
- 'process.env': {
- BABEL_ENV: JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
- },
+ 'process.env.BABEL_ENV': JSON.stringify(process.env.BABEL_ENV || process.env.NODE_ENV || null),
})
);