Skip to content

Commit

Permalink
install istanbul-instrumenter-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
baukh789 committed Apr 24, 2017
1 parent eacb522 commit 61c3ead
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module.exports = function (config) {
basePath: '',
frameworks: ['jasmine'],
files: [
'/src/js/*.js',
'test/*_test.js'
],
exclude: ['karma.conf.js'],
Expand All @@ -17,7 +16,6 @@ module.exports = function (config) {
captureTimeout: 60000,
reporters: ['progress', 'coverage'],
preprocessors: {
'src/**/*.js': ['webpack', 'coverage'],
'test/*_test.js': ['webpack']
},
// optionally, configure the reporter
Expand All @@ -30,16 +28,6 @@ module.exports = function (config) {
]
},
webpack: {
devtool: 'eval',
output: {
pathinfo: true
},
eslint: {
configFile: '.eslintrc',
emitWarning: true,
emitError: true,
formatter: require('eslint-friendly-formatter')
},
module: {
loaders:[
{
Expand Down Expand Up @@ -78,7 +66,13 @@ module.exports = function (config) {
exclude: /(node_modules|bower_components)/,
include: [path.join(__dirname, 'src')]
}
]
],
postLoaders: [{
test: /\.js$/,
loader: 'istanbul-instrumenter',
exclude: /node_modules|_spec\.js$/,
include: [path.join(__dirname, './src')]
}]
}

},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eslint-plugin-standard": "^1.3.1",
"express": "^4.15.2",
"file-loader": "^0.11.1",
"istanbul-instrumenter-loader": "^1.1.0",
"istanbul-instrumenter-loader": "^1.2.0",
"jTool": "^1.2.16",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "^2.3.4",
Expand Down

0 comments on commit 61c3ead

Please sign in to comment.