Karma Jasmine tests always fails with stacktrace at line 9
angularjs, jasmine, javascript, karma-jasmine, karma-runner
Solution
It seems that with `"karma": "~0.12.16"` and `"karma-jasmine": "~0.1.5"` the problem is fixed. Now I get a proper stack trace.
Problem
I have a weird problem. Whenever I'm trying to test something and the test fails, it always shows a stacktrace with line number 9. I'm using AngularJS along with Jasmine and Karma. I found out that it doesn't depend on the browser. An error looks like this: ``` TypeError: 'undefined' is not an object (evaluating 'new google.maps.LatLng') at /Users/user1/project1/test_ctrl.js:9 at /Users/user1/project1/spec/test_ctrl_spec.js:170 ``` So, it tells me that the test fails on line 170 (this is correct), but the cause of the error is inside my `test_ctrl.js` at a complete different line number than number 9. And this line number is shown on every test that fails. Anyone an idea how to solve this?