Make the Default Reporter `mocha` For Karma

The `mocha` reporter provides a lot of detail about which tests that
fail and why.
This commit is contained in:
Andrew Fontaine 2019-03-11 09:18:24 -04:00
parent e8e25a0f40
commit 618902d290
1 changed files with 2 additions and 2 deletions

View File

@ -112,13 +112,13 @@ module.exports = function(config) {
preprocessors: {
'spec/javascripts/**/*.js': ['webpack', 'sourcemap'],
},
reporters: ['progress'],
reporters: ['mocha'],
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
};
if (process.env.CI) {
karmaConfig.reporters = ['mocha', 'junit'];
karmaConfig.reporters.push('junit');
karmaConfig.junitReporter = {
outputFile: 'junit_karma.xml',
useBrowserName: false,