Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix: resolved html reporter issue with istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
BilalQamar committed Jun 7, 2022
1 parent ec79863 commit 9049860
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 7 deletions.
6 changes: 4 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.exports = function (config) {
'karma-chrome-launcher',
'karma-webpack',
'karma-sourcemap-loader',
'karma-coverage-istanbul-reporter'
],

webpack: {
Expand Down Expand Up @@ -188,16 +189,17 @@ module.exports = function (config) {
// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'coverage'],
reporters: ['progress', 'coverage-istanbul'],

coverageReporter: {
coverageIstanbulReporter: {
dir: 'build',
subdir: 'coverage-js',
reporters: [
{ type: 'html', subdir: 'coverage-js/html' },
{ type: 'cobertura', file: 'coverage.xml' },
{ type: 'text-summary' },
],
fixWebpackSourcePaths: true
},

// web server port
Expand Down
262 changes: 258 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"install": "0.8.9",
"jquery": "1.11.3",
"js-natural-sort": "0.8.1",
"karma-coverage-istanbul-reporter": "^3.0.3",
"moment": "2.24.0",
"node-bourbon": "4.2.8",
"nprogress": "0.2.0",
Expand Down Expand Up @@ -75,7 +76,7 @@
"jscs": "1.13.1",
"karma": "4.4.1",
"karma-chrome-launcher": "2.2.0",
"karma-coverage": "1.1.2",
"karma-coverage": "^1.1.2",
"karma-jasmine": "2.0.1",
"karma-jasmine-html-reporter": "0.2.2",
"karma-jasmine-jquery-2": "0.1.1",
Expand Down

0 comments on commit 9049860

Please sign in to comment.