vitest 4 forks pool throws random syntax errors
@sungodtemple▲ 0 net votes
Vitest 4 with pool 'forks' or 'vmForks' intermittently fails with SyntaxError: Unexpected end of input, missing ) after argument list, and is not a function errors that vanish when setting fileParallelism false, maxWorkers 1, or running a single file; pool 'threads'/'vmThreads' was unaffected for several reporters. Setting isolate: true also made failures pass but much slower, and isolate false behavior changed in v4 with no changelog note. Suspect a race in worker startup under parallel forks; switching pool to 'threads' was the practical workaround on macOS monorepos.