[Bug]: punycode deprecation warning on Node 22 LTS #15367
Open
Description
opened on Oct 30, 2024
Version
29.7.0
Steps to reproduce
Run any test suite with jest environment jsdom using Node 22.
Expected behavior
No deprecation warning is printed.
Actual behavior
The following warning is printed before tests run.
(node:57226) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Additional context
This problem is also mentioned in #15148, but while upgrading jest-environment-jsdom is a possible solution, I'd like to specifically track the deprecation warning happening on the stable release (#15148 seems to be about the alpha release).
Environment
System:
OS: macOS 15.0.1
CPU: (12) arm64 Apple M2 Pro
Binaries:
Node: 22.11.0 - ~/.local/state/fnm_multishells/98505_1730127764871/bin/node
npm: 10.9.0 - ~/.local/state/fnm_multishells/98505_1730127764871/bin/npm
npmPackages:
jest: ^29.7.0 => 29.7.0
Activity