-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Hi, when trying to create a test that tests the behavior of WorkerThreads, it fails to start the application with this error message, failing to parse my workerScript.ts:
import { parentPort } from "worker_threads";
^^^^^^
SyntaxError: Cannot use import statement outside a module
The application itself can be started with and is working via node -r ts-node/register/transpile-only
Is there any option to test WorkerThreads behaviour via ts-mocha at all?
Metadata
Metadata
Assignees
Labels
No labels