-
Notifications
You must be signed in to change notification settings - Fork 312
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
Stack trace for error shows wrong place in code #121
Comments
You probably hit this: jestjs/jest#5496 |
@thymikee Thanks! Will do. |
@xaralis, was this issue resolved for you? I seem to be encountering this with [email protected]. |
@xaralis 22.3.0 doesn't have it yet, will be in 22.4 or so |
Yep, we didn't yet have a chance to try it. Waiting patiently. |
22.4.0 is released! |
For the record, I confirm that [email protected] fixes the issue. Thanks @thymikee |
I've first thought this is issue with ts-jest but was proven wrong. The preset is responsible as found out in kulshekhar/ts-jest#433.
Issue
When testing, the captured stack trace for an error shows different part of spec file. The line numbers match the code as expected, but the trace shows a different piece of the file.
Expected behavior
The stack trace shows where the error actually really happened.
Test repo:
https://github.com/xaralis/ts-jest-433
Output from your debug log
Test output
Full test file
Line numbers are OK, but the stack trace area doesn't cover the place where the error actually happened.
The text was updated successfully, but these errors were encountered: