JS: Angular 11: Deprecated karma-coverage-istanbul-reporter
Starting Angular 11, the karma-coverage-istanbul-reporter has been deprecated. In order to solve this, you can use karma-coverage.
In order to configure this, please do the following:
Install the karma-coverage package -
npm install karma karma-coverage
Update the karma.conf.js file and modify the
coverageIstanbulReporter
tocoverageReporter
and use thetype: 'json'
find below an example of such a reporter configuration
coverageReporter: {
dir: 'build/reports/coverage',
reporters: [
{ type: 'json', subdir: 'report-json' }
]
},
PreviousAngular 8+: Duplicate Method ReportingNextJS: Reducing Sealights Logging for Instrumented Code
Last updated
Was this helpful?