-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line number for coffee script tests are incorrect #12
Comments
What does the compiled coffee script look like? I would bet that the line mentioned in the error is of the transpiled coffeescript (i.e. the javascript), not the original coffeescript file. |
@waynegerard, the JavaScript is
It is interesting, because error line numbers do not match JavaScript either. It is even more interesting because today there are no line numbers in the error report at all.
|
Hi! I have similar problem, in log window shown js number lines, not coffee how I could change this? |
Same here. Can anyone clarify that it is a non-implemented feature (using pre-processors sourcemaps to show line numbers in origin file)? |
If you use default configuration, line numbers should be working - but not in |
Same here. It seems to be a problem with PhantomJS. Running in Chrome fixes the issue. Too bad too, I much prefer error messages like |
:( this should be supported by now. edit: jk maybe it does. Setting sourceMap to true seems to do it: https://github.com/karma-runner/karma-coffee-preprocessor#configuration |
Hi, can anyone help me to setup karma to show error line numbers correctly for CoffeScript tests?
For the following test the report contains text
test_spec.coffee:3:26
. I assume that 3 is the line number, which is not quite right. It should be 2, not 3.Test output:
My config:
I am using:
[email protected]
[email protected]
[email protected]
Thank you
The text was updated successfully, but these errors were encountered: