From 855e286e61709c49700707aafcc04821a978ede9 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Sun, 8 Feb 2026 19:00:58 -0500 Subject: [PATCH] test: restraint version replacement pattern in snapshots --- test/common/assertSnapshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/assertSnapshot.js b/test/common/assertSnapshot.js index 24eb60e913a9ce..2b27db283167fc 100644 --- a/test/common/assertSnapshot.js +++ b/test/common/assertSnapshot.js @@ -14,7 +14,7 @@ const windowNewlineRegexp = /\r/g; // placeholder. This could commonly present in an unhandled exception // output. function replaceNodeVersion(str) { - return str.replaceAll(process.version, ''); + return str.replaceAll(`Node.js ${process.version}`, 'Node.js '); } function replaceStackTrace(str, replacement = '$1*$7$8\n') {