Skip to content
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

[heft-jest-plugin, repo] Fix issues with punycode in jest-environment-jsdom and add Node 22 to the repo test matrix. #5038

Merged
merged 10 commits into from
Dec 10, 2024

Conversation

iclanton
Copy link
Member

@iclanton iclanton commented Dec 10, 2024

Summary

Importing punycode emits a deprecating warning starting in Node 22 and jsdom imports punycode. This PR introduces a patch that injects punycode into the NodeJS require cache before loading jest-environment-jsdom.

This PR also adds Node 22 to the test matrix.

Fixes #5033 and #5008

How it was tested

Built and ran unit tests.

Note that the node-core-library tests are failing in Node 22 on Windows and need to be investigated.

Impacted documentation

The punycode injection should be documented.

@iclanton iclanton linked an issue Dec 10, 2024 that may be closed by this pull request
@iclanton iclanton force-pushed the heft-jest-punycode branch 2 times, most recently from 3f944ec to 605e733 Compare December 10, 2024 05:19
@iclanton iclanton enabled auto-merge (squash) December 10, 2024 07:04
@iclanton iclanton merged commit bb5099a into microsoft:main Dec 10, 2024
6 checks passed
@iclanton iclanton deleted the heft-jest-punycode branch December 10, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
2 participants