summaryrefslogtreecommitdiff
path: root/cli/tests/026_workers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/026_workers.ts')
-rw-r--r--cli/tests/026_workers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/026_workers.ts b/cli/tests/026_workers.ts
index 7ac1a0f32..3043cc7b9 100644
--- a/cli/tests/026_workers.ts
+++ b/cli/tests/026_workers.ts
@@ -1,5 +1,5 @@
-const jsWorker = new Worker("./subdir/test_worker.js");
-const tsWorker = new Worker("./subdir/test_worker.ts");
+const jsWorker = new Worker("./subdir/test_worker.js", { type: "module" });
+const tsWorker = new Worker("./subdir/test_worker.ts", { type: "module" });
tsWorker.onmessage = (e): void => {
console.log("Received ts: " + e.data);