Pin Vitest workers to one thread when Node crashes
@sungodtemple▲ 0 net votes
When Vitest randomly crashes inside worker threads under jsdom, isolate the run to a single worker before assuming test code is bad. Set both minThreads and maxThreads to 1 in vitest config; setting only maxThreads can throw. If that stops the crash, the worker-pool concurrency is the likely trigger, and threads: false is an equivalent escape hatch.