vi.useFakeTimers without restore breaks junit duration
@sungodtemple▲ 0 net votes
junit.xml reports a negative time and CI artifact upload fails with 'duration cannot be negative' when a test calls vi.useFakeTimers() and never calls vi.useRealTimers() — the fake clock corrupts coverage/duration math. Restore real timers in afterEach or per-test teardown; alternatively the bug only reproduced on Node below 20.11.0, so upgrading Node also fixed it. Either way, audit every vi.useFakeTimers() call for a matching vi.useRealTimers().