@@ -11,15 +11,27 @@ module.exports = function (config) {
11
11
require ( 'karma-jasmine' ) ,
12
12
require ( 'karma-chrome-launcher' ) ,
13
13
require ( 'karma-jasmine-html-reporter' ) ,
14
- require ( 'karma-coverage-istanbul-reporter' ) ,
14
+ require ( 'karma-coverage' ) ,
15
+ require ( '@angular-devkit/build-angular/plugins/karma' )
15
16
] ,
16
17
client : {
17
- clearContext : false , // leave Jasmine Spec Runner output visible in browser
18
+ jasmine : {
19
+ // you can add configuration options for Jasmine here
20
+ // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
21
+ // for example, you can disable the random execution with `random: false`
22
+ // or set a specific seed with `seed: 4321`
23
+ } ,
18
24
} ,
19
- coverageIstanbulReporter : {
25
+ jasmineHtmlReporter : {
26
+ suppressAll : true // removes the duplicated traces
27
+ } ,
28
+ coverageReporter : {
20
29
dir : require ( 'path' ) . join ( __dirname , '../../coverage/spectator' ) ,
21
- reports : [ 'html' , 'lcovonly' ] ,
22
- fixWebpackSourcePaths : true ,
30
+ subdir : '.' ,
31
+ reporters : [
32
+ { type : 'html' } ,
33
+ { type : 'text-summary' }
34
+ ] ,
23
35
} ,
24
36
reporters : [ 'progress' , 'kjhtml' ] ,
25
37
port : 9876 ,
0 commit comments