Skip to content

Commit 3a54d7a

Browse files
committed
fix(@angular/cli): add jasmine html report when using code coverage flag
fixes #5136
1 parent 7087195 commit 3a54d7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: packages/@angular/cli/blueprints/ng/files/karma.conf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = function (config) {
1212
require('karma-coverage-istanbul-reporter'),
1313
require('@angular/cli/plugins/karma')
1414
],
15-
client:{
15+
client: {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
files: [
@@ -22,17 +22,17 @@ module.exports = function (config) {
2222
'./<%= sourceDir %>/test.ts': ['@angular/cli']
2323
},
2424
mime: {
25-
'text/x-typescript': ['ts','tsx']
25+
'text/x-typescript': ['ts', 'tsx']
2626
},
2727
coverageIstanbulReporter: {
28-
reports: [ 'html', 'lcovonly' ],
28+
reports: ['html', 'lcovonly'],
2929
fixWebpackSourcePaths: true
3030
},
3131
angularCli: {
3232
environment: 'dev'
3333
},
3434
reporters: config.angularCli && config.angularCli.codeCoverage
35-
? ['progress', 'coverage-istanbul']
35+
? ['progress', 'coverage-istanbul', 'kjhtml']
3636
: ['progress', 'kjhtml'],
3737
port: 9876,
3838
colors: true,

0 commit comments

Comments
 (0)