Skip to content

Commit

Permalink
feat(@angular/cli): add jasmine html report when using code coverage …
Browse files Browse the repository at this point in the history
…flag

fixes angular#5136
  • Loading branch information
delasteve committed Mar 20, 2017
1 parent 7087195 commit 57c5910
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/@angular/cli/blueprints/ng/files/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function (config) {
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
client:{
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
Expand All @@ -22,17 +22,17 @@ module.exports = function (config) {
'./<%= sourceDir %>/test.ts': ['@angular/cli']
},
mime: {
'text/x-typescript': ['ts','tsx']
'text/x-typescript': ['ts', 'tsx']
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'coverage-istanbul']
? ['progress', 'coverage-istanbul', 'kjhtml']
: ['progress', 'kjhtml'],
port: 9876,
colors: true,
Expand Down

0 comments on commit 57c5910

Please sign in to comment.