Skip to content

Commit

Permalink
feat(): Upgrade istanbul-instrumenter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Weiß committed Feb 27, 2017
1 parent 2a8638a commit 2f191d0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ if (isCI && !process.env.SAUCE_USERNAME) {
delete webpackConfiguration.entry;

// instrument only testing sources with Istanbul
webpackConfiguration.module.postLoaders = [{
webpackConfiguration.module.rules.push({
test: /\.js$/,
include: path.resolve('src/'),
loader: 'istanbul-instrumenter',
loader: 'istanbul-instrumenter-loader',
query: {
esModules: true,
},
}];
});

module.exports = function (config) {
// Karma configuration
Expand Down Expand Up @@ -70,8 +70,6 @@ module.exports = function (config) {
colors: true,

webpackMiddleware: {
// webpack-dev-middleware configuration
// i. e.
stats: 'errors-only',
},
};
Expand Down

0 comments on commit 2f191d0

Please sign in to comment.