-
Notifications
You must be signed in to change notification settings - Fork 147
v3.0.61 some globals missing #488
Comments
Hmm okay! Before I was using the global jest provides us (not the real global). It looks like what they are providing is a little incomplete. I can mesh the two globals (using the real global to fill in the gaps of jest). Thanks for the detailed report btw. It's always super helpful to see something like that. |
no problem! same goes back to you, thank you!!! |
btw, I forgot to mention, I'm sure you know: URL and URLSearchParams only exist in node v10+ I also just noticed that util is a node.js global as well. I'll add it to the list above. |
Update: This was interesting and may be an engine bug. I noticed that the However, |
that's indeed weird. do you mean by possible "engine bug" V8? just curious, is this reproducible without jest and esm? |
I have a few hunches. I suspect it has to do with an object uses as the context for multiple Update: v3.0.62 is released 🎉 |
nice, thanks!! all tests are passing! 😃 |
still converting tests to use esm and jest and noticed that some (other) globals are missing. 😕
scenario is the same as #487, and the same repro can be used: https://github.com/dnalborczyk/esm-jest-repro/tree/jest-no-global (with v3.0.61, fixes global)
I made a list based off: https://nodejs.org/api/globals.html. not sure if the list is conclusive , nor do I know if everything even should exist (e.g. __dirname, require, etc.):
in addition:
The text was updated successfully, but these errors were encountered: