Skip to content

Commit 2595481

Browse files
authored
Skip debuglog tests (#3810)
1 parent dade9de commit 2595481

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/node-test/debug.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ const { tspl } = require('@matteo.collina/tspl')
88
// eslint-disable-next-line no-control-regex
99
const removeEscapeColorsRE = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g
1010

11+
const isNode23Plus = process.versions.node.split('.')[0] >= 23
1112
const isCITGM = !!process.env.CITGM
1213

13-
test('debug#websocket', { skip: !process.versions.icu || isCITGM }, async t => {
14+
test('debug#websocket', { skip: !process.versions.icu || isCITGM || isNode23Plus }, async t => {
1415
const assert = tspl(t, { plan: 6 })
1516
const child = spawn(
1617
process.execPath,
@@ -48,7 +49,7 @@ test('debug#websocket', { skip: !process.versions.icu || isCITGM }, async t => {
4849
await assert.completed
4950
})
5051

51-
test('debug#fetch', { skip: isCITGM }, async t => {
52+
test('debug#fetch', { skip: isCITGM || isNode23Plus }, async t => {
5253
const assert = tspl(t, { plan: 7 })
5354
const child = spawn(
5455
process.execPath,
@@ -85,7 +86,7 @@ test('debug#fetch', { skip: isCITGM }, async t => {
8586
await assert.completed
8687
})
8788

88-
test('debug#undici', { skip: isCITGM }, async t => {
89+
test('debug#undici', { skip: isCITGM || isNode23Plus }, async t => {
8990
// Due to Node.js webpage redirect
9091
const assert = tspl(t, { plan: 7 })
9192
const child = spawn(

0 commit comments

Comments
 (0)