karma-runner / karma-runner/karma-coverage

All errors fail at line #9 with karma-coverage enabled

Open
#96 8 comments 1 reaction 0 assignees View on GitHub
type: bug-upstream
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

I've noticed with karma-coverage enabled all jasmine errors always point to line #9 due to parsing the istanbul minified code and reporting the error from there rather than the original source code.

```
Error: Expected 'ctrl-states: favorites' not to be 'ctrl-states: default'.
at null. (/Volumes/Site/State.ctrl.spec.js:9:2110)
```

The only way around this is to disable coverage whenever I need to debug where an error is failing in the controller. Is there any way around this or has some one worked out a solve? I've been unable to track one down on my own. Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.