From eb916a491de6476fadd76018da26bf79088e5c1d Mon Sep 17 00:00:00 2001 From: ERFANIUM Date: Sat, 23 Jul 2022 17:20:43 +0430 Subject: [PATCH] improve(test): use import.meta.resolve --- tests/cases/07_worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cases/07_worker.ts b/tests/cases/07_worker.ts index dc9659e..cea3f27 100644 --- a/tests/cases/07_worker.ts +++ b/tests/cases/07_worker.ts @@ -5,7 +5,7 @@ Deno.test({ name: "WORKER: Deno does not throw when deno_mongo is imported in worker", fn: async () => { const importWorker = new Worker( - new URL("import_worker.ts", import.meta.url).href, + import.meta.resolve("./import_worker.ts"), { type: "module" }, ); const p = deferred();