Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Silence logging when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leethomas authored and tofumatt committed Dec 26, 2015
1 parent 05b5325 commit 7f210dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions karma.shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ module.exports = {
webpack: newWebpackConfig,
webpackServer: {
noInfo: true,
quiet: true,
},
};
5 changes: 5 additions & 0 deletions tests/test-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
// See: https://github.com/webpack/karma-webpack#alternative-usage
import 'babel-core/polyfill';

var logLevels = ['log', 'warn', 'info', 'error', 'debug'];
logLevels.forEach(function(level) {
console[level] = function() {};
});

var context = require.context('.', true, /.*?test\..*?.jsx?$/);
context.keys().forEach(context);

0 comments on commit 7f210dd

Please sign in to comment.