@vitest.dev Core Team • Open Source @chromatic.com • github.com/AriPerkkio
AriPerkkio
Loading...
I just need a few more of you to migrate to @vitest.dev so I can prove that crystal balls work 🔮 😉
(the charts from npmx.dev are so neat ❤️)
Excited to announce that I've officially joined @chromatic.com! My main focus will be working around features related to @vitest.dev 🤝
This day 4 years ago I sent my first PR to @vitest.dev. Back then it was on v0.7.4 with 80K weekly downloads. After one year and +70 more PRs, @antfu.me and @erus.dev invited me to join the team.
Today we are at v4.1.0 with 35M weekly downloads. Maybe in 2030 we'll have Vitest 8 with 140M downloads.
In the next version of Vitest you can track leaking asynchronous resources via `--detect-async-leaks` option! Available in v4.1.0-beta.4 release. 🔍
(notice missing await in the example)
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! 🔥
Adds missing test cases for outputFile configuration.
I'm working on another bug fix and thought let's merge these ones first.
Vitest hit 20 million weekly downloads in December, right before Christmas break. To put that into context: 5 million @vitest.dev weekly downloads were reached in June 2024, meaning a 4x increase in just 1.5 years. 🎉
When using vite@8-beta with Vitest users no longer need to add magical '@preserve' keywords in their coverage ignore hints. Originally this work-around was needed due to esbuild's (intentional) lack of support for comment preserving. Oxc has built-in support for JS coverage tools' ignore hints.
I'd like to avoid forking Istanbuljs monorepo just for Vitest. Any istanbuljs Github organization members here who could make me a maintainer there? (@kentcdodds.com, @jasonkurian.dev 👋)
github.com/vitest-dev/v...
Video
VoidZero
AriPerkkio
AriPerkkio
Vitest 4.0.11 adds an experimental `fsModuleCache` flag to cache module transforms between reruns. Learn more: vitest.dev/config/exper...
This is an opt-in feature, please let us know how it works for you!
And example of a single test file that imports a lot of files (~1500). Almost a 50% boost!
Vladimir
⚡ ever wanted to download @stackblitz.com projects without opening the site?
you now can 🎉
🌐 web: replace stackblitz.com w/ stackblitz.zip in any edit url
🖥️ cli: `npx stackblitz-zip <url>` or `npx stackblitz-clone <url>`
📦 npm: `npm i stackblitz-zip`
built for myself to grab repros from issues