diff options
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; |
