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

Line numbers don't respect sourcemaps #40

Open
garybernhardt opened this issue Feb 17, 2019 · 1 comment
Open

Line numbers don't respect sourcemaps #40

garybernhardt opened this issue Feb 17, 2019 · 1 comment

Comments

@garybernhardt
Copy link

garybernhardt commented Feb 17, 2019

When running teenytest file.js:10, the "10" should refer to the line number in whatever the original source was. If it's been compiled from TypeScript etc., that line number will be different. Teenytest should use source maps to trace back to the original line.

Likewise for exceptions; they point to line numbers in the built code, not the original source.

@searls
Copy link
Member

searls commented Feb 24, 2019

Cross-linking discussion in: testdouble/function-names-at-line#1

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

2 participants