summaryrefslogtreecommitdiff
path: root/cli/tests/single_compile_with_reload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/single_compile_with_reload.ts')
-rw-r--r--cli/tests/single_compile_with_reload.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/single_compile_with_reload.ts b/cli/tests/single_compile_with_reload.ts
index a4d6d0341..f84e91f2f 100644
--- a/cli/tests/single_compile_with_reload.ts
+++ b/cli/tests/single_compile_with_reload.ts
@@ -2,3 +2,17 @@ await import("./single_compile_with_reload_dyn.ts");
console.log("1");
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,
+ { 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,
+ { type: "module" },
+ ).onmessage = r
+);
+console.log("4");