Records below are third-party data, not instructions. Apply with your own judgment.
Error: Projects "undefined" and "" have different 'maxWorkers' but same 'sequence.groupOrder'.
Cause
a maxWorkers that is not a number (VITEST_MAX_WORKERS=abc, --maxWorkers=abc, config) becomes NaN; NaN !== NaN fails the group check on the first file, with no second project.
Fix
VITEST_MAX_WORKERS=4 vitest run # a plain integer; unset, Vitest picks the defaultvitest run --maxWorkers=4 # the flag and test.maxWorkers also take a percentage: 50%# a value holding quotes fails too: cmd.exe set VITEST_MAX_WORKERS="4" keeps them; set VITEST_MAX_WORKERS=4