Skip to content

Commit 1809532

Browse files
committed
chore: 🤖 align karma.conf.js with latest @angular/cli reference
1 parent 9b93aa8 commit 1809532

File tree

3 files changed

+2433
-120
lines changed

3 files changed

+2433
-120
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"@analogjs/vite-plugin-angular": "^1.18.0",
3535
"@analogjs/vitest-angular": "^1.18.0",
3636
"@angular-builders/jest": "^20.0.0",
37+
"@angular-devkit/build-angular": "^20.1.0",
3738
"@angular-devkit/schematics": "^20.1.0",
3839
"@angular/animations": "^20.1.0",
3940
"@angular/build": "^20.1.0",
@@ -72,7 +73,7 @@
7273
"jsdom": "^25.0.1",
7374
"karma": "6.4.4",
7475
"karma-chrome-launcher": "3.2.0",
75-
"karma-coverage-istanbul-reporter": "3.0.3",
76+
"karma-coverage": "2.2.1",
7677
"karma-jasmine": "5.1.0",
7778
"karma-jasmine-html-reporter": "2.1.0",
7879
"lint-staged": "^13.1.0",

projects/spectator/karma.conf.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,27 @@ module.exports = function (config) {
1111
require('karma-jasmine'),
1212
require('karma-chrome-launcher'),
1313
require('karma-jasmine-html-reporter'),
14-
require('karma-coverage-istanbul-reporter'),
14+
require('karma-coverage'),
15+
require('@angular-devkit/build-angular/plugins/karma')
1516
],
1617
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+
},
1824
},
19-
coverageIstanbulReporter: {
25+
jasmineHtmlReporter: {
26+
suppressAll: true // removes the duplicated traces
27+
},
28+
coverageReporter: {
2029
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+
],
2335
},
2436
reporters: ['progress', 'kjhtml'],
2537
port: 9876,

0 commit comments

Comments
 (0)