Skip to content

Commit 411a870

Browse files
committed
fix(karma): update Angular build plugin and improve configuration formatting
1 parent 8537aba commit 411a870

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

karma.conf.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = function (config) {
1010
require('karma-chrome-launcher'),
1111
require('karma-jasmine-html-reporter'),
1212
require('karma-coverage'),
13-
require('@angular-devkit/build-angular/plugins/karma')
13+
require('@angular/build'),
1414
],
1515
client: {
1616
jasmine: {
@@ -21,18 +21,15 @@ module.exports = function (config) {
2121
},
2222
},
2323
jasmineHtmlReporter: {
24-
suppressAll: true // removes the duplicated traces
24+
suppressAll: true, // removes the duplicated traces
2525
},
2626
coverageReporter: {
2727
dir: require('path').join(__dirname, './coverage/pres'),
2828
subdir: '.',
29-
reporters: [
30-
{ type: 'html' },
31-
{ type: 'text-summary' }
32-
]
29+
reporters: [{ type: 'html' }, { type: 'text-summary' }],
3330
},
3431
reporters: ['progress', 'kjhtml'],
3532
browsers: ['Chrome'],
36-
restartOnFileChange: true
33+
restartOnFileChange: true,
3734
});
3835
};

0 commit comments

Comments
 (0)