After Upgrading to Angular 13 the tests which are run with --code-coverage are failing with error that some plugin is missing
I am using karma-coverage-istanbul-reporter
on the karma.conf.js
and this is causing some issue. I even replaced this with the default karma-coverage
, but still seeing the same error
ng test waxion --no-watch --code-coverage --browsers ChromeHeadless
⠋ Generating browser application bundles (phase: setup)...20 11 2021 17:34:24.723:ERROR [reporter]: Can not load reporter "coverage", it is not registered!
Perhaps you are missing some plugin?
⠙ Generating browser application bundles (phase: building)...20 11 2021 17:34:27.353:INFO [karma-server]: Karma v6.3.9 server started at http://localhost:9876/
20 11 2021 17:34:27.353:INFO [launcher]: Launching browsers Chrome with concurrency unlimited
20 11 2021 17:34:27.353:ERROR [karma-server]: Error: Found 1 load error
at Server.<anonymous> (/Users/waxion/test-project/node_modules/karma/lib/server.js:239:26)
at Object.onceWrapper (events.js:421:28)
at Server.emit (events.js:327:22)
at Server.EventEmitter.emit (domain.js:486:12)
at emitListeningNT (net.js:1352:10)
at processTicksAndRejections (internal/process/task_queues.js:79:21)```