VoidZero @voidzero.dev · Feb 18

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! 🔥

56 likes 1 replies

?

Replies

VoidZero · Feb 18

⚠️ Don't run it on every run though. Use it to audit your test suite, then clean things up. Link to the docs for all the curious people main.vitest.dev/config/detec...