summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/single_compile_with_reload.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-07-20 16:56:53 +0200
committerGitHub <noreply@github.com>2022-07-20 16:56:53 +0200
commitd17b3906bf3a0871d54e9fdc009891e378dc45f5 (patch)
tree446551bf2f53908d01a4a9b6d35905065369068b /cli/tests/testdata/single_compile_with_reload.ts
parent73504d76b29eddc1a563e74bb379682e23347b3c (diff)
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/testdata/single_compile_with_reload.ts')
-rw-r--r--cli/tests/testdata/single_compile_with_reload.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/testdata/single_compile_with_reload.ts b/cli/tests/testdata/single_compile_with_reload.ts
index f84e91f2f..ea6a73474 100644
--- a/cli/tests/testdata/single_compile_with_reload.ts
+++ b/cli/tests/testdata/single_compile_with_reload.ts
@@ -4,14 +4,14 @@ await import("./single_compile_with_reload_dyn.ts");
console.log("2");
await new Promise((r) =>
new Worker(
- new URL("single_compile_with_reload_worker.ts", import.meta.url).href,
+ import.meta.resolve("single_compile_with_reload_worker.ts"),
{ type: "module" },
).onmessage = r
);
console.log("3");
await new Promise((r) =>
new Worker(
- new URL("single_compile_with_reload_worker.ts", import.meta.url).href,
+ import.meta.resolve("single_compile_with_reload_worker.ts"),
{ type: "module" },
).onmessage = r
);