From 4abb0469fd32c59da1af00c90887cabb59dd6e4c Mon Sep 17 00:00:00 2001 From: Raúl Benencia Date: Thu, 4 Jun 2026 13:13:07 -0300 Subject: fix: add min required node version in smoke test --- test/integ-test/frontend_smoke.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/integ-test/frontend_smoke.js') diff --git a/test/integ-test/frontend_smoke.js b/test/integ-test/frontend_smoke.js index 0b453c8..e9ac50a 100644 --- a/test/integ-test/frontend_smoke.js +++ b/test/integ-test/frontend_smoke.js @@ -29,6 +29,11 @@ const chromiumBin = process.env.CHROMIUM_BIN || 'chromium'; const smokeMac = '02:00:00:00:00:42'; const smokeMacPath = smokeMac.replace(/:/g, '-'); +const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(Number); +if ((nodeMajor < 22 || (nodeMajor === 22 && nodeMinor < 4)) || typeof WebSocket !== 'function') { + throw new Error('Node >= 22.4.0 with global WebSocket is required for the frontend smoke test'); +} + class CDPClient { constructor(webSocketURL) { this.nextID = 1; -- cgit v1.2.3