diff --git a/test/wpt/runner/runner.mjs b/test/wpt/runner/runner.mjs index a800cfff9bf..4012c71eb69 100644 --- a/test/wpt/runner/runner.mjs +++ b/test/wpt/runner/runner.mjs @@ -7,7 +7,7 @@ import { colors, handlePipes, normalizeName, parseMeta, resolveStatusPath } from const alwaysExit0 = process.env.GITHUB_WORKFLOW === 'Daily WPT report' -const basePath = fileURLToPath(join(import.meta.url, '../..')) +const basePath = join(fileURLToPath(import.meta.url), '../..') const testPath = join(basePath, '../fixtures/wpt') const statusPath = join(basePath, 'status') @@ -135,7 +135,7 @@ export class WPTRunner extends EventEmitter { } async run () { - const workerPath = fileURLToPath(join(import.meta.url, '../worker.mjs')) + const workerPath = join(fileURLToPath(import.meta.url), '../worker.mjs') /** @type {Set} */ const activeWorkers = new Set() let finishedFiles = 1 diff --git a/test/wpt/server/server.mjs b/test/wpt/server/server.mjs index 8cd81b069ec..2ade5291c6e 100644 --- a/test/wpt/server/server.mjs +++ b/test/wpt/server/server.mjs @@ -10,7 +10,7 @@ import { route as redirectRoute } from './routes/redirect.mjs' import { Pipeline } from './util.mjs' import { symbols } from './constants.mjs' -const tests = fileURLToPath(join(import.meta.url, '../../../fixtures/wpt')) +const tests = join(fileURLToPath(import.meta.url), '../../../fixtures/wpt') // https://web-platform-tests.org/tools/wptserve/docs/stash.html class Stash extends Map { diff --git a/test/wpt/start-cacheStorage.mjs b/test/wpt/start-cacheStorage.mjs index fe818dddc14..bb5d2c20060 100644 --- a/test/wpt/start-cacheStorage.mjs +++ b/test/wpt/start-cacheStorage.mjs @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url' import { fork } from 'child_process' import { on } from 'events' -const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs')) +const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs') const child = fork(serverPath, [], { stdio: ['pipe', 'pipe', 'pipe', 'ipc'] diff --git a/test/wpt/start-eventsource.mjs b/test/wpt/start-eventsource.mjs index f2a92562108..213aa4e3d8a 100644 --- a/test/wpt/start-eventsource.mjs +++ b/test/wpt/start-eventsource.mjs @@ -4,7 +4,7 @@ import { fileURLToPath } from 'url' import { fork } from 'child_process' import { on } from 'events' -const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs')) +const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs') const child = fork(serverPath, [], { stdio: ['pipe', 'pipe', 'pipe', 'ipc'] diff --git a/test/wpt/start-fetch.mjs b/test/wpt/start-fetch.mjs index 0e2168e610c..520dd2a8876 100644 --- a/test/wpt/start-fetch.mjs +++ b/test/wpt/start-fetch.mjs @@ -6,7 +6,7 @@ import { on } from 'events' const { WPT_REPORT } = process.env -const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs')) +const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs') const child = fork(serverPath, [], { stdio: ['pipe', 'pipe', 'pipe', 'ipc'] diff --git a/test/wpt/start-mimesniff.mjs b/test/wpt/start-mimesniff.mjs index ebe4e783e3b..d28782fe926 100644 --- a/test/wpt/start-mimesniff.mjs +++ b/test/wpt/start-mimesniff.mjs @@ -6,7 +6,7 @@ import { on } from 'events' const { WPT_REPORT } = process.env -const serverPath = fileURLToPath(join(import.meta.url, '../server/server.mjs')) +const serverPath = join(fileURLToPath(import.meta.url), '../server/server.mjs') const child = fork(serverPath, [], { stdio: ['pipe', 'pipe', 'pipe', 'ipc'] diff --git a/test/wpt/start-websockets.mjs b/test/wpt/start-websockets.mjs index ec42af0eeb1..2a909dde3c2 100644 --- a/test/wpt/start-websockets.mjs +++ b/test/wpt/start-websockets.mjs @@ -22,7 +22,7 @@ if (process.env.CI) { // process.exit(0) } -const serverPath = fileURLToPath(join(import.meta.url, '../server/websocket.mjs')) +const serverPath = join(fileURLToPath(import.meta.url), '../server/websocket.mjs') const child = fork(serverPath, [], { stdio: ['pipe', 'pipe', 'pipe', 'ipc']