Skip to content

Commit 6df0fe0

Browse files
authored
fix windows CI (#2379)
1 parent 3ec35ee commit 6df0fe0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"test:tdd": "tap test/*.js test/diagnostics-channel/*.js -w",
8585
"test:typescript": "node scripts/verifyVersion.js 14 || tsd && tsc --skipLibCheck test/imports/undici-import.ts",
8686
"test:websocket": "node scripts/verifyVersion.js 18 || tap test/websocket/*.js",
87-
"test:wpt": "node scripts/verifyVersion 18 || (node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node --no-warnings --expose-internals test/wpt/start-websockets.mjs)",
87+
"test:wpt": "node scripts/verifyVersion 18 || (node test/wpt/start-fetch.mjs && node test/wpt/start-FileAPI.mjs && node test/wpt/start-mimesniff.mjs && node test/wpt/start-xhr.mjs && node test/wpt/start-websockets.mjs)",
8888
"coverage": "nyc --reporter=text --reporter=html npm run test",
8989
"coverage:ci": "nyc --reporter=lcov npm run test",
9090
"bench": "PORT=3042 concurrently -k -s first npm:bench:server npm:bench:run",

test/wpt/start-websockets.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { join } from 'path'
33
import { fileURLToPath } from 'url'
44
import { fork } from 'child_process'
55
import { on } from 'events'
6-
import options from 'internal/options'
76

87
const { WPT_REPORT } = process.env
98

@@ -12,7 +11,7 @@ function isGlobalAvailable () {
1211
return true
1312
}
1413

15-
return typeof options.getOptionValue('--experimental-websocket') === 'boolean'
14+
return process.execArgv.includes('--experimental-websocket')
1615
}
1716

1817
if (process.env.CI) {

0 commit comments

Comments
 (0)