Skip to content

Commit 5bc09a6

Browse files
committed
Avoid text with different color format on Node.js 22 too
1 parent 636de88 commit 5bc09a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

create-reporter/index.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,11 @@ it('reports EACCES error', () => {
272272
check('error', { err: { code: 'EACCES', port: 80 }, fatal: true })
273273
})
274274

275-
// Node.js 20 color formatter is different
276-
if (!process.version.startsWith('v20.')) {
275+
// Old Node.js color formatter is different
276+
if (
277+
!process.version.startsWith('v20.') &&
278+
!process.version.startsWith('v22.')
279+
) {
277280
it('reports EADDRINUSE error', () => {
278281
check('error', {
279282
err: { code: 'EADDRINUSE', port: 31337 },

0 commit comments

Comments
 (0)