Files
orca/config/ast-grep/rule-tests/main-worker-thread-spawn-test.yml

8 lines
217 B
YAML

id: main-worker-thread-spawn
valid:
- 'spawnWorkerThread(workerPath, { workerData })'
- 'new WorkerThreadChildProcessHost(factory)'
invalid:
- 'new Worker(workerPath)'
- 'new workerThreads.Worker(workerPath)'