diff options
Diffstat (limited to 'cli/tests/testdata/single_compile_with_reload.ts')
| -rw-r--r-- | cli/tests/testdata/single_compile_with_reload.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/tests/testdata/single_compile_with_reload.ts b/cli/tests/testdata/single_compile_with_reload.ts new file mode 100644 index 000000000..f84e91f2f --- /dev/null +++ b/cli/tests/testdata/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( + 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"); |
