-
Notifications
You must be signed in to change notification settings - Fork 455
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
Sourcemaps are broken for JavaScript files imported by TypeScript files #485
Comments
I had the same issue, but fixed it using |
This works for the this trivial case but didn't work for my more complex case. However with this change: jestjs/jest#5945 and |
@jamietre thanks for pointing that out. I'll wait for that change to be published and then check back on this issue |
Jest 23 is out with the fix |
Can you confirm this issue is fixed in Jest 23? @SimenB ? |
no, just that the fix @jamietre said worked for them is released |
This should have been fixed in latest version. If it's not the case, please re-open the issue ;-) |
@huafu I just updated to I had to change ts-jest config to |
When running TypeScript tests, if an error occurs in a JavaScript dependency, the source map is not preserved; stack trace has line number in compiled code.
Source maps always work.
none
https://github.com/jamietre/jest-source-map-problem/tree/20b8c62b45d19ca241b181f994d3bd6d3527fe69
Possibly related issue:
jestjs/jest#5925
The text was updated successfully, but these errors were encountered: