Replies: 2 comments
-
I think this might be Jest issue. You can try checking with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you referring to this issue? DefinitelyTyped/DefinitelyTyped#60924 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starting from Node 18, a built-in fetch global is available. It's also available in Node 17.5 and above with the flag
--experimental-fetch
.I'm able to use it just fine with my node application (written in TS and built by esbuild), but when I try to run tests with
ts-jest
, it seems to be unable to resolve the global. I get an error along the lines ofReferenceError: Headers is not defined
. I can provide a repro or open an issue if needed.Beta Was this translation helpful? Give feedback.
All reactions