-
-
Notifications
You must be signed in to change notification settings - Fork 938
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
Got 12.0 fails with jest + ts-jest #1952
Comments
This is a problem with Jest or your Jest config. https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c |
I am also running into issues with this and jest documentation for esm support is garbage. @emil-e did you figure out a fix for your config that works? |
After reading more about the release and jest esm support, I'm just going to have to stick with 11 till jest gets there... Totally not a issue on the got teams side of things, shame jest dropped the ball on esm. |
This is my workaround for this issue:
Edit: Updated above to work with v12.3.0 |
@Rychu-Pawel: I tried that workaround with got v13 in this project but jest still fails with this error:
|
Describe the bug
Actual behavior
Failure when using Got 12.0 together with jest and ts-jest:
I tried to have jest/ts-jest also transform
got
throughtransformIgnorePatterns
but then it complains about not finding the modulenode:events
instead.Expected behavior
Succeeds just like 11.x did.
Code to reproduce
Jest config:
Tsconfig:
Checklist
The text was updated successfully, but these errors were encountered: