diff options
| author | Raúl Benencia <id@rbenencia.name> | 2026-06-04 13:13:07 -0300 |
|---|---|---|
| committer | Raul Benencia <46945030+raul-te@users.noreply.github.com> | 2026-06-04 16:54:47 -0300 |
| commit | 4abb0469fd32c59da1af00c90887cabb59dd6e4c (patch) | |
| tree | c5d8b15da3fcb7ebd3bb14da9e4dc245386eb7d5 /test/integ-test/frontend_smoke.js | |
| parent | 1668a8c01763c39dd91c39f98ffe36670ba8c612 (diff) | |
fix: add min required node version in smoke test
Diffstat (limited to 'test/integ-test/frontend_smoke.js')
| -rw-r--r-- | test/integ-test/frontend_smoke.js | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
