Skip to content
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

source line numbers for AssertionErrors when transpiling with Babel or Traceur #52

Open
edrex opened this issue May 11, 2015 · 3 comments

Comments

@edrex
Copy link

edrex commented May 11, 2015

When an AssertionError occurs in a transpiled test, the report looks like this:

AssertionError: expected 'Hello, fooo.' to equal 'Hello, foo.'
    at Context.eval (base/test/hello.spec.js!eval:23:44)

Ideally it would show the line in the source file, like base/test/hello.spec.js:11:44

I'm not sure what projects would need changes to plumb this through, but IMO this ought to work out of the box. Opening an issue here to track upstreams.

Fairly extensive discussion at babel/karma-babel-preprocessor#4

@edrex
Copy link
Author

edrex commented May 11, 2015

@myitcv
Copy link

myitcv commented Jul 8, 2015

Anyone have this working in their setup?

@letmaik
Copy link

letmaik commented Aug 26, 2015

Doesn't change anything for me, in fact produces more errors but the stacktraces are the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants