From 2595481434730793e7b1469ed9f63dd624dcaeff Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 7 Nov 2024 16:18:54 +0000 Subject: [PATCH] Skip debuglog tests (#3810) --- test/node-test/debug.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/node-test/debug.js b/test/node-test/debug.js index bd4d3e806fe..f85dff58cf9 100644 --- a/test/node-test/debug.js +++ b/test/node-test/debug.js @@ -8,9 +8,10 @@ const { tspl } = require('@matteo.collina/tspl') // eslint-disable-next-line no-control-regex const removeEscapeColorsRE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g +const isNode23Plus = process.versions.node.split('.')[0] >= 23 const isCITGM = !!process.env.CITGM -test('debug#websocket', { skip: !process.versions.icu || isCITGM }, async t => { +test('debug#websocket', { skip: !process.versions.icu || isCITGM || isNode23Plus }, async t => { const assert = tspl(t, { plan: 6 }) const child = spawn( process.execPath, @@ -48,7 +49,7 @@ test('debug#websocket', { skip: !process.versions.icu || isCITGM }, async t => { await assert.completed }) -test('debug#fetch', { skip: isCITGM }, async t => { +test('debug#fetch', { skip: isCITGM || isNode23Plus }, async t => { const assert = tspl(t, { plan: 7 }) const child = spawn( process.execPath, @@ -85,7 +86,7 @@ test('debug#fetch', { skip: isCITGM }, async t => { await assert.completed }) -test('debug#undici', { skip: isCITGM }, async t => { +test('debug#undici', { skip: isCITGM || isNode23Plus }, async t => { // Due to Node.js webpage redirect const assert = tspl(t, { plan: 7 }) const child = spawn(