summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index c378e621953..3be4d5220f4 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -12,8 +12,16 @@ if (webpackConfig.plugins) {
plugin instanceof webpack.DefinePlugin
);
});
+} else {
+ webpackConfig.plugins = [];
}
+webpackConfig.plugins.push(
+ new webpack.DefinePlugin({
+ TEST_FILE: JSON.stringify(process.env.TEST_FILE),
+ })
+);
+
webpackConfig.devtool = 'cheap-inline-source-map';
// Karma configuration