-
Notifications
You must be signed in to change notification settings - Fork 0
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 tests detect open handles for Node v20 (TTYWRAP) #2
Comments
Not sure if related, but I also had some trouble installing dependencies for this project on Node 20 too (using Here's the error on node 20: Node 20 Build Error Log
Looks like the sleep/node-sleep module might be the cause. Could be worth updating it? Downgrading to node 18, I can build successfully, but when attempting to publish locally with yalc npx --yes yalc publish --private I get the following error: Node 18 Yalc Publish Error
Downgrading once more to node 16 and everything works. As an aside, I'm switch node versions using fnm. |
No idea about the Jest issue. From the other points, it looks like:
To be honest, I'm not sure how much time it's worth investing here. For older nodes this is useful, but for new Node releases (the latest releases of v20, v22, and any future versions) synchronous ESM require is now supported anyway. In both the cases above, it's going to take a fair bit of work to update this and I'm not likely to have any time for that myself in the short term at least. What do you think? |
Fully agree - or rather, I think we should push people to use the new features if they're available for node v20+ instead of providing support for them here. Just wanted to raise the issue - thanks @pimterry! Feel free to close :). |
For any Jest tests that uses
e.g. running any tests in import-sync, the following error occurs in Node v20 (but not v18).
@pimterry not sure if you have any idea?
The text was updated successfully, but these errors were encountered: