-
-
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
jest-worker and typescript unexpected behavior #8872
Comments
Could you add a readme to the reproduction with which commands to run in order to reproduce the bug, and describe what behaviour you expected? |
Thanks for the small reproduction! The underlying cause of the error here is that The bad error message is because To see the syntax error, either pass Doing either of those will bubble up the syntax error: We can probably improve our docs here. Ideas on how we could have made this clearer in the readme? |
A note in the docs & readme should be just enough. @tedconn would you like to contribute it? |
Thanks for the follow up. I can contribute that. |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one. |
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. |
🐛 Bug Report
Jest tests fail with this error:
To Reproduce
Using
jest
and@babel/preset-typescript
, andjest-worker
, create a test which creates a new jest-worker which invokes a typescript definition.Expected behavior
The typescript worker is run without error and the result returned to the test
Link to repl or repo (highly encouraged)
Repro is here:
https://github.com/tedconn/worker-jest-ts
I was actually trying to repro a different issue but when trying to come up with a repro I would have expected this simple case to work!
envinfo
The text was updated successfully, but these errors were encountered: