Istanbul: Wrong coverage report

Created on 18 Jul 2018  路  3Comments  路  Source: gotwarlost/istanbul

Is it correct coverage report? I am not sure what exactly it is pointing? any help? Using "karma-coverage-istanbul-reporter": "^1.2.1",

image

Most helpful comment

I have same issue after upgrade to Angular 6.1

ANGULAR 6 FIX:
For Angular 6 app you can add "sourceMap": true, to angular.json:

"test": {
  "builder": "@angular-devkit/build-angular:karma",
  "options": {
    "sourceMap": true,
    ...

All 3 comments

Any update on this? Anywhere I am doing anything wrong?

Seems issue with sourcemap!!!

I have same issue after upgrade to Angular 6.1

ANGULAR 6 FIX:
For Angular 6 app you can add "sourceMap": true, to angular.json:

"test": {
  "builder": "@angular-devkit/build-angular:karma",
  "options": {
    "sourceMap": true,
    ...
Was this page helpful?
0 / 5 - 0 ratings

Related issues

amoufaddel picture amoufaddel  路  28Comments

blindenvy picture blindenvy  路  19Comments

jonathanong picture jonathanong  路  18Comments

niftylettuce picture niftylettuce  路  29Comments

schulzch picture schulzch  路  151Comments