Skip to content

Commit

Permalink
test(coverage): upgrade karma-remap-istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Aug 2, 2016
1 parent 99d63d7 commit 574afc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
22 changes: 2 additions & 20 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,13 @@ module.exports = function(config) {
postLoaders: [{
test: /src\/.+\.ts$/,
exclude: /(test|node_modules)/,
loader: 'istanbul-instrumenter'
loader: 'sourcemap-istanbul-instrumenter?force-sourcemap=true'
}]
},
tslint: {
emitErrors: !WATCH,
failOnHint: false
},
ts: {
compilerOptions: {
sourceMap: false,
inlineSourceMap: true
}
},
plugins: WATCH ? [] : [
new webpack.NoErrorsPlugin(),
new StyleLintPlugin({
Expand All @@ -74,23 +68,11 @@ module.exports = function(config) {
]
},

coverageReporter: {
reporters: [{
type: 'json',
subdir: '.',
file: 'coverage-final.json'
}]
},

remapIstanbulReporter: {
src: 'coverage/coverage-final.json',
reports: {
lcovonly: 'coverage/lcov.info',
html: 'coverage/html',
'text-summary': null
},
timeoutNotCreated: 5000,
timeoutNoMoreFiles: 1000
}
},

// test results reporter to use
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@
"ghooks": "~1.3.0",
"imports-loader": "~0.6.5",
"intl": "~1.2.4",
"istanbul-instrumenter-loader": "~0.2.0",
"karma": "~1.1.1",
"karma-coverage": "~1.1.0",
"karma-mocha": "~1.1.1",
"karma-phantomjs-launcher": "~1.0.0",
"karma-remap-istanbul": "~0.1.1",
"karma-remap-istanbul": "~0.2.0",
"karma-source-map-support": "~1.1.0",
"karma-sourcemap-loader": "~0.3.7",
"karma-webpack": "~1.7.0",
Expand All @@ -75,6 +74,7 @@
"sass-loader": "4.0.0",
"sinon": "~1.17.4",
"sinon-chai": "~2.8.0",
"sourcemap-istanbul-instrumenter-loader": "~0.2.0",
"standard-version": "~2.4.0",
"style-loader": "~0.13.0",
"stylelint": "~6.9.0",
Expand Down

0 comments on commit 574afc6

Please sign in to comment.