Skip to content

Commit

Permalink
fix(app): fix karma coverage reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Kaczmarek authored and madve2 committed Jun 8, 2023
1 parent 5dc8a91 commit 98a4db0
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 167 deletions.
111 changes: 98 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"jasmine-spec-reporter": "~7.0.0",
"karma": "~6.4.2",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "^2.2.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-firefox-launcher": "^2.1.2",
"karma-ie-launcher": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion projects/ng-lightning/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = function (config) {
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-coverage'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-sauce-launcher'),
Expand All @@ -36,7 +37,7 @@ module.exports = function (config) {
reports: ['text-summary', 'html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
reporters: ['progress', 'kjhtml', 'coverage-istanbul'],
port: 23011,
colors: true,
logLevel: config.LOG_INFO,
Expand Down
5 changes: 3 additions & 2 deletions src/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function (config) {
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-coverage'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
Expand All @@ -20,12 +21,12 @@ module.exports = function (config) {
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
reporters: ['progress', 'kjhtml', 'coverage-istanbul'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
};
17 changes: 0 additions & 17 deletions src/tslint.json

This file was deleted.

0 comments on commit 98a4db0

Please sign in to comment.