summaryrefslogtreecommitdiff
path: root/tests/testdata/run/single_compile_with_reload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/single_compile_with_reload.ts')
-rw-r--r--tests/testdata/run/single_compile_with_reload.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/testdata/run/single_compile_with_reload.ts b/tests/testdata/run/single_compile_with_reload.ts
new file mode 100644
index 000000000..9478ad523
--- /dev/null
+++ b/tests/testdata/run/single_compile_with_reload.ts
@@ -0,0 +1,18 @@
+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(
+ import.meta.resolve("./single_compile_with_reload_worker.ts"),
+ { type: "module" },
+ ).onmessage = r
+);
+console.log("3");
+await new Promise((r) =>
+ new Worker(
+ import.meta.resolve("./single_compile_with_reload_worker.ts"),
+ { type: "module" },
+ ).onmessage = r
+);
+console.log("4");