summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compile/workers
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/compile/workers')
-rw-r--r--cli/tests/testdata/compile/workers/basic.out5
-rw-r--r--cli/tests/testdata/compile/workers/basic.ts11
-rw-r--r--cli/tests/testdata/compile/workers/not_in_module_map.ts11
-rw-r--r--cli/tests/testdata/compile/workers/worker.ts14
4 files changed, 0 insertions, 41 deletions
diff --git a/cli/tests/testdata/compile/workers/basic.out b/cli/tests/testdata/compile/workers/basic.out
deleted file mode 100644
index 9cf9aa18f..000000000
--- a/cli/tests/testdata/compile/workers/basic.out
+++ /dev/null
@@ -1,5 +0,0 @@
-worker.js imported from main thread
-Starting worker
-Hello from worker!
-Received 42
-Closing
diff --git a/cli/tests/testdata/compile/workers/basic.ts b/cli/tests/testdata/compile/workers/basic.ts
deleted file mode 100644
index 8edf58de9..000000000
--- a/cli/tests/testdata/compile/workers/basic.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import "./worker.ts";
-
-console.log("Starting worker");
-const worker = new Worker(
- new URL("./worker.ts", import.meta.url),
- { type: "module" },
-);
-
-setTimeout(() => {
- worker.postMessage(42);
-}, 500);
diff --git a/cli/tests/testdata/compile/workers/not_in_module_map.ts b/cli/tests/testdata/compile/workers/not_in_module_map.ts
deleted file mode 100644
index b43f8cb1f..000000000
--- a/cli/tests/testdata/compile/workers/not_in_module_map.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-// This time ./worker.ts is not in the module map, so the worker
-// initialization will fail unless worker.js is passed as a side module.
-
-const worker = new Worker(
- new URL("./worker.ts", import.meta.url),
- { type: "module" },
-);
-
-setTimeout(() => {
- worker.postMessage(42);
-}, 500);
diff --git a/cli/tests/testdata/compile/workers/worker.ts b/cli/tests/testdata/compile/workers/worker.ts
deleted file mode 100644
index a1c357ab1..000000000
--- a/cli/tests/testdata/compile/workers/worker.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/// <reference no-default-lib="true" />
-/// <reference lib="deno.worker" />
-
-if (import.meta.main) {
- console.log("Hello from worker!");
-
- addEventListener("message", (evt) => {
- console.log(`Received ${evt.data}`);
- console.log("Closing");
- self.close();
- });
-} else {
- console.log("worker.js imported from main thread");
-}