Run tests in node:worker_threads.
Test isolation (when enabled) is done by spawning a new thread for each test file.
Run tests in isolated node:vm.
Test files are run parallel using node:child_process fork()
This makes tests run faster, but VM module is unstable. Your tests might leak memory.
Run tests in isolated node:vm.
Test files are run parallel using node:worker_threads.
This makes tests run faster, but VM module is unstable. Your tests might leak memory.
Run tests in
node:child_processusing fork()Test isolation (when enabled) is done by spawning a new child process for each test file.