From 2ea31d39f5dc305b829e3e5f482b7c3ab53c585c Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Mon, 2 Sep 2024 14:28:21 +0200 Subject: [PATCH] test: skip exec-args on node 22 --- test/config/test/exec-args.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/config/test/exec-args.test.ts b/test/config/test/exec-args.test.ts index d8ad84375633..12707511c44b 100644 --- a/test/config/test/exec-args.test.ts +++ b/test/config/test/exec-args.test.ts @@ -13,8 +13,10 @@ test.each([ const fileToTest = `${pool}.test.ts` // TODO: node.js has a bug that makes --inspect-brk not work on worker threads - if (nodeMajor === 20 && nodeMinor > 14 && pool !== 'forks') { - return + if (pool !== 'forks') { + if ((nodeMajor === 20 && nodeMinor > 14) || (nodeMajor > 20)) { + return + } } const vitest = await runVitest({