All errors fail at line #9 with karma-coverage enabled
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.<anonymous> (/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.
+1
:+1:
+1 this bug makes debugging impossible. I've disabled coverage reporting for my watch configuration so I can debug effectively.
This is due to istanbul. I've filed a bug on their repo https://github.com/gotwarlost/istanbul/issues/274
+1000. This definitely makes debugging difficult.
+1
+1
+1