From 0c50c39c35f1c92bbb96bc3e101e2c446256cb7b Mon Sep 17 00:00:00 2001 From: Vedant Pandey Date: Thu, 15 Jun 2023 20:30:30 +0530 Subject: fix(node): Worker constructor doesn't check type: module of package.json (#19480) --- cli/tests/unit_node/worker_threads_test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/tests/unit_node/worker_threads_test.ts') 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 @@ -133,6 +133,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() { -- cgit v1.2.3