Skip to content

Commit

Permalink
Skip debuglog tests (#3810)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina authored Nov 7, 2024
1 parent dade9de commit 2595481
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/node-test/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 2595481

Please sign in to comment.