- There seems to be a problem with Vitest versions newer than
0.12.10that make tests fail on Node 16. Thus we're pinning the Vitest version to0.12.10as well as settingthreads: falseif Node < 18 is used.- See vitest-dev/vitest#1191 (comment)
- The underlying problems seems to be a bug in Node 16 related to worker cleanup.
- Seems also like Vitest even with Node 18 doesn't seem to work on Windows with
threads: true - Update: I've been running into further issues with
threads: trueand have now disabled it entirely - Update (2022/9/5): It seems like even the latest Vitest addition of
VITEST_SEGFAULT_RETRYstill doesn't resolve failing tests on Windows with Node 14 (see this action run)
TODO: We should see whether upcoming Node versions (incl 16.x release) fix the problems above so we can upgrade to the latest Vitest version and use threads: true in all cases.