diff options
author | Lukas Eipert <git@leipert.io> | 2018-04-10 10:36:59 +0200 |
---|---|---|
committer | Lukas Eipert <git@leipert.io> | 2018-04-10 10:36:59 +0200 |
commit | 8e66411488e87d59dde65c690892d9495292fe86 (patch) | |
tree | 482d2bd7b2e7142ee5ab74406d586d84c91ba56a /config/karma.config.js | |
parent | daa6195f84f53cc484ad0730f2c5a88c6e654b15 (diff) | |
parent | 91a3a4b526214f4174f4f12de23dfb5baf033211 (diff) | |
download | gitlab-ce-8e66411488e87d59dde65c690892d9495292fe86.tar.gz |
Merge branch 'master' into winh-single-karma-test
# Conflicts:
# spec/javascripts/test_bundle.js
Diffstat (limited to 'config/karma.config.js')
-rw-r--r-- | config/karma.config.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/karma.config.js b/config/karma.config.js index 609c4780ccc..3be4d5220f4 100644 --- a/config/karma.config.js +++ b/config/karma.config.js @@ -5,7 +5,7 @@ var ROOT_PATH = path.resolve(__dirname, '..'); // remove problematic plugins if (webpackConfig.plugins) { - webpackConfig.plugins = webpackConfig.plugins.filter(function (plugin) { + webpackConfig.plugins = webpackConfig.plugins.filter(function(plugin) { return !( plugin instanceof webpack.optimize.CommonsChunkPlugin || plugin instanceof webpack.optimize.ModuleConcatenationPlugin || @@ -26,6 +26,8 @@ webpackConfig.devtool = 'cheap-inline-source-map'; // Karma configuration module.exports = function(config) { + process.env.TZ = 'Etc/UTC'; + var progressReporter = process.env.CI ? 'mocha' : 'progress'; var karmaConfig = { @@ -40,12 +42,12 @@ module.exports = function(config) { // escalated kernel privileges (e.g. docker run --cap-add=CAP_SYS_ADMIN) '--no-sandbox', ], - } + }, }, frameworks: ['jasmine'], files: [ { pattern: 'spec/javascripts/test_bundle.js', watched: false }, - { pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false }, + { pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw|.png)', included: false }, ], preprocessors: { 'spec/javascripts/**/*.js': ['webpack', 'sourcemap'], @@ -61,7 +63,7 @@ module.exports = function(config) { reports: ['html', 'text-summary'], dir: 'coverage-javascript/', subdir: '.', - fixWebpackSourcePaths: true + fixWebpackSourcePaths: true, }; karmaConfig.browserNoActivityTimeout = 60000; // 60 seconds } |