If you upgraded to Angular 11 recently, you might have noticed that
karma-coverage-istanbul-reporter has been deprecated.
It can simply be replaced with
karma-coverage and by changing some things in
npm uninstall karma-coverage-istanbul-report
npm install karma karma-coverage
- by removing require
require('karma-coverage-istanbul-report') and including
- and changing the
reports parameter to
As reference I refer to the
karma.conf.js template within Angular 11: https://github.com/angular/angular-cli/blob/v11.0.0/packages/schematics/angular/application/files/karma.conf.js.template.