Skip to content

Commit

Permalink
chore: update normalizedStderr (#4319)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Dec 17, 2024
1 parent c7f5264 commit 6dfc362
Showing 1 changed file with 0 additions and 15 deletions.
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

0 comments on commit 6dfc362

Please sign in to comment.