Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-12-22 02:01:51 +0300
committerWinnie Hellmann <winnie@gitlab.com>2017-12-22 02:01:51 +0300
commitdaa6195f84f53cc484ad0730f2c5a88c6e654b15 (patch)
tree8ef78c6688c247dc57a0c94b4e88a902fc4015a8 /config/karma.config.js
parent539996f7daf9115f713c0802dea85c53c5f6838a (diff)
Add option to run a single Karma spec file
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 9f018d14b8f..609c4780ccc 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