summaryrefslogtreecommitdiff
path: root/cli/tests/unit_node/worker_threads_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/unit_node/worker_threads_test.ts')
-rw-r--r--cli/tests/unit_node/worker_threads_test.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/unit_node/worker_threads_test.ts b/cli/tests/unit_node/worker_threads_test.ts
index f53b1e692..c46df057e 100644
--- a/cli/tests/unit_node/worker_threads_test.ts
+++ b/cli/tests/unit_node/worker_threads_test.ts
@@ -134,6 +134,16 @@ Deno.test({
});
Deno.test({
+ name: "[worker_threads] worker thread with type module",
+ fn() {
+ const worker = new workerThreads.Worker(
+ new URL("./testdata/worker_module/index.js", import.meta.url),
+ );
+ worker.terminate();
+ },
+});
+
+Deno.test({
name: "[worker_threads] inheritences",
async fn() {
const worker = new workerThreads.Worker(