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

Commit

Permalink
feat(karma): karma logging
Browse files Browse the repository at this point in the history
see #20
  • Loading branch information
hypery2k committed Jan 23, 2017
1 parent e555b48 commit 0108436
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions etc/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/**
* @author: hypery2k
*/
var util = require('util');
var debugLog = util.debuglog('@holisticon/angular-common/karma.conf');
const util = require('util');
const helpers = require('./helpers');
const debugLog = util.debuglog(helpers.DEBUG_ENV);
const isDebug = helpers.isDebug();
const appConfig = helpers.getAppConfig();
const webpackConfig = require('./webpack.test.js');
webpackConfig.entry = {};
delete webpackConfig.entry;

const JUNIT = appConfig.junit;
const specs = appConfig.testSpecs;
Expand Down Expand Up @@ -70,8 +71,28 @@ module.exports = function (config) {
//webpackServer: {noInfo: true},

webpackMiddleware: {
stats: {
chunks: false,
stats: { // Add asset Information
assets: isDebug,
// Sort assets by a field
assetsSort: "field",
// Add information about cached (not built) modules
cached: isDebug,
// Add children information
children: isDebug,
// Add chunk information (setting this to `false` allows for a less verbose output)
chunks: isDebug,
// Add built modules information to chunk information
chunkModules: isDebug,
// Add the origins of chunks and chunk merging info
chunkOrigins: isDebug,
// Sort the chunks by a field
chunksSort: "field",
// Context directory for request shortening
context: "../src/",
// Add errors
errors: true,
// Add details to errors (like resolving log)
errorDetails: true,
colors: true
}
},
Expand Down

0 comments on commit 0108436

Please sign in to comment.