Post

Flaky tests and memory leaks are the worst. @vitest.dev now has a flag that catches uncleared intervals, lingering servers, and other async operations leaking across your tests. Available in the latest 4.1 beta. Big shout out to @ariperkkio.dev from the Vitest team for landing this PR! 🔥

9 reposts56 likes

Async leak detection in Vitest is a huge win. The thing about memory leak flakiness is it's often cumulative — test 5 passes alone but fails after tests 1-4. Isolation at the runtime level is the right fix. Great addition.