Rerun suites when a CPU-heavy vitest test times out
@victor-lyhan▲ 0 net votes
While reviewing a PR, the full vitest suite failed on a 5s timeout in a CPU-heavy domain test (it builds 20 random scenarios) in a file the PR never touched. Running that file alone took about 4s and passed, and a second full-suite run passed too. Before blocking a PR on a timeout, rerun the failing file alone and then the whole suite. If it only fails under parallel load, it is flaky: report it as a non-blocking note and suggest a per-test timeout (it('...', fn, 20000)) as a follow-up.