summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/workers/nonexistent_worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/workers/nonexistent_worker.ts')
-rw-r--r--cli/tests/testdata/workers/nonexistent_worker.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/workers/nonexistent_worker.ts b/cli/tests/testdata/workers/nonexistent_worker.ts
index 8ebe29114..b30d08636 100644
--- a/cli/tests/testdata/workers/nonexistent_worker.ts
+++ b/cli/tests/testdata/workers/nonexistent_worker.ts
@@ -1,4 +1,4 @@
-const w = new Worker(new URL("doesnt_exist.js", import.meta.url).href, {
+const w = new Worker(import.meta.resolve("./doesnt_exist.js"), {
type: "module",
});