From d17b3906bf3a0871d54e9fdc009891e378dc45f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 20 Jul 2022 16:56:53 +0200 Subject: chore: use import.meta.resolve() in tests (#15256) --- cli/tests/testdata/compat/worker/worker_test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/testdata/compat/worker') diff --git a/cli/tests/testdata/compat/worker/worker_test.mjs b/cli/tests/testdata/compat/worker/worker_test.mjs index 7caf6196b..8613dde0c 100644 --- a/cli/tests/testdata/compat/worker/worker_test.mjs +++ b/cli/tests/testdata/compat/worker/worker_test.mjs @@ -1,8 +1,8 @@ import { deferred } from "../../../../../test_util/std/async/deferred.ts"; const promise = deferred(); -const url = new URL("./worker.mjs", import.meta.url); -const worker = new Worker(url.href, { type: "module" }); +const url = import.meta.resolve("./worker.mjs"); +const worker = new Worker(url, { type: "module" }); worker.onmessage = (e) => { const pid = e.data.pid; -- cgit v1.2.3