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! 🔥
Post
⚠️ 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...
main.vitest.devVitestNext generation testing framework powered by Vite
0 reposts3 likes
No replies yet.