diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-07 13:27:36 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-02-07 13:27:36 -0600 |
commit | fbdf54bdcf192fb12a17c06ac74b79c815911e1d (patch) | |
tree | 8f24adcbf7a150121be9297ad85acdca5331d510 /config | |
parent | bc13687c7e374116e4830d004b82e9960d3a55cc (diff) | |
download | gitlab-ce-fbdf54bdcf192fb12a17c06ac74b79c815911e1d.tar.gz |
fix karma coverage report
Diffstat (limited to 'config')
-rw-r--r-- | config/karma.config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/karma.config.js b/config/karma.config.js index 44229e2ee88..59b95427dbc 100644 --- a/config/karma.config.js +++ b/config/karma.config.js @@ -13,9 +13,17 @@ module.exports = function(config) { { pattern: 'spec/javascripts/fixtures/**/*@(.json|.html|.html.raw)', included: false }, ], preprocessors: { - 'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap'], + 'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap', 'coverage'], }, + reporters: ['progress', 'coverage'], webpack: webpackConfig, webpackMiddleware: { stats: 'errors-only' }, + coverageReporter: { + dir: './coverage-javascript', + reporters: [ + { type: 'html', subdir: 'default' }, + { type: 'text-summary' } + ], + } }); }; |