javascript - Karma Jasmine tests always fails with stacktrace at line 9 -
i have weird problem. whenever i'm trying test , test fails, shows stacktrace line number 9.
i'm using angularjs along jasmine , karma. found out doesn't depend on browser. error looks this:
typeerror: 'undefined' not object (evaluating 'new google.maps.latlng') @ /users/user1/project1/test_ctrl.js:9 @ /users/user1/project1/spec/test_ctrl_spec.js:170
so, tells me test fails on line 170 (this correct), cause of error inside test_ctrl.js
@ complete different line number number 9. , line number shown on every test fails.
anyone idea how solve this?
this appears issue using karma-coverage, since istanbul code coverage tool minifies source code. there open issue on karma-coverage repo. if temporarily disable coverage reporter in karma config file, should work fine.
Comments
Post a Comment