-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[Bug]: Typescript compilation errors cause Jest to hang silently #12832
Comments
Seems like export default {
extensionsToTreatAsEsm: [".ts"],
transform: {},
}; There is nothing to transform in your example. Hence, a transformer should either throw an error, or do nothing and let the test fail at runtime. |
I've moved the issue to the |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
28.1.0
Steps to reproduce
https://github.com/NiekPas/jest-hangs.git
npm i
npm run test
Expected behavior
I expect Jest to output a compilation error or other indication that the test could not be run.
Actual behavior
Jest hangs indefinitely.
Additional context
I'm not sure if this is a jest bug or a ts-jest bug. Please let me know if I should move this issue and I will happily do so.
May be due to the use of ESM?
ts-jest
version is28.0.1
.Environment
The text was updated successfully, but these errors were encountered: