diff options
author | Vedant Pandey <vedantpandey46@gmail.com> | 2023-06-15 20:30:30 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 17:00:30 +0200 |
commit | 0c50c39c35f1c92bbb96bc3e101e2c446256cb7b (patch) | |
tree | 568d0f393997a7c4dab9665e7a20e10a5af2187d /cli/tests/unit_node/worker_threads_test.ts | |
parent | f145cbfaccd9f3b251b2f80690ad7c68b26d924b (diff) |
fix(node): Worker constructor doesn't check type: module of package.json (#19480)
Diffstat (limited to 'cli/tests/unit_node/worker_threads_test.ts')
-rw-r--r-- | cli/tests/unit_node/worker_threads_test.ts | 10 |
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( |