Vitest retry feature and file‑system write operations: handling duplicate writes
When a Vitest test is marked with retry: n , the framework re‑executes the entire test function on each attempt, including any setup code that performs file‑system writes such as snapshot creation or log output. This behavior can produce duplicate writes if the test writes to the same path on every retry, potentially corrupting artifacts or causing noisy CI