Skip to content

chore: update normalizedStderr #4319

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions test/utils/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,6 @@ const normalizeStderr = (stderr) => {
normalizedStderr = normalizedStderr.join("\n");
}

// TODO remove me after drop old Node.js versions and update deps
// Suppress warnings for Node.js version >= v22
// [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
if (process.version.startsWith("v22")) {
normalizedStderr = normalizedStderr
.split("\n")
.filter((line) => {
return (
!line.includes("DeprecationWarning: The `punycode` module is deprecated.") &&
!line.includes("Use `node --trace-deprecation ...`")
);
})
.join("\n");
}

// the warning below is causing CI failure on some jobs
if (/Gracefully shutting down/.test(stderr)) {
normalizedStderr = normalizedStderr.replace(
Expand Down
Loading