-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 break error reporting in Jest #1372
Comments
Im not familiar with jest and don't know how it works. And its not clear to me why it uses your project path, e.g.
Can you try to debug and find a source of problem? |
Adding jest expert @hmil |
I'm no Jest expert but your test repo gets fixed by downgrading
Try to isolate whether it's due to |
Yep, it seems to be an issue with Jest itself. I'll dive deeper and file an issue in the Jest repo. Thanks for the help! |
thank you for your help @hmil |
Fairly sure this is related to jestjs/jest#5121 |
thank you @hmil bro! |
Thank you @hmil ! |
Sourcemaps seem to break error reporting in Jest. Every time TypeORM throw an error while running tests with Jest I get something like this:
Removing the sourcemap for
EntityMetadataValidator.ts
seems to fix the problem. It also only happens in Jest, when I run the code in Node it works perfectly fine.I made a repository as to easily reproduce the bug: https://github.com/TimonVS/typeorm-jest-bug
The text was updated successfully, but these errors were encountered: