summaryrefslogtreecommitdiff
path: root/config/karma.config.js
diff options
context:
space:
mode:
authorkushalpandya <kushalspandya@gmail.com>2017-06-20 20:16:01 +0530
committerkushalpandya <kushalspandya@gmail.com>2017-06-20 20:16:01 +0530
commit745d46bc88be45066d4abb448f1308f11f970e26 (patch)
tree0927c9c8aae38897ca0466bd8f3d11ceb12b4eea /config/karma.config.js
parent40cd50829944db38fac07014e5fa00eafa3d1bc7 (diff)
parent0d5fbd957fcc7fba91e6f197dab0810a90a6d382 (diff)
downloadgitlab-ce-745d46bc88be45066d4abb448f1308f11f970e26.tar.gz
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'config/karma.config.js')
-rw-r--r--config/karma.config.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index 5911a9a7e10..2f571978e08 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -66,5 +66,14 @@ module.exports = function(config) {
karmaConfig.customLaunchers.ChromeHeadlessCustom.flags.push('--enable-logging', '--v=1');
}
+ if (process.env.DEBUG) {
+ karmaConfig.logLevel = config.LOG_DEBUG;
+ process.env.CHROME_LOG_FILE = process.env.CHROME_LOG_FILE || 'chrome_debug.log';
+ }
+
+ if (process.env.CHROME_LOG_FILE) {
+ karmaConfig.customLaunchers.ChromeHeadlessCustom.flags.push('--enable-logging', '--v=1');
+ }
+
config.set(karmaConfig);
};