Next generation testing framework powered by @vite. It's fast! ⚡️

@zachleat And it's pretty smart about only re-running the tests for the changes you made. Even when running under debugger, it's almost as fast as I type.

Really enjoying working with vitest.dev/ on a project that needs to be tested in Node, Safari, Firefox, and Chrome!

My favorite bits:

1. Easy to setup headless browsers with Browser Mode
2. CLI runs in watch mode by default (and not on CI)
3. Has all the `assert` APIs I was used to
4. test.skipIf 🏆
5. `only` works without modifying the CLI command (I know why Node test runner does this but it’s proven more annoying than helpful)

vitest.dev

Vitest

Next generation testing framework powered by Vite

4

Give us your thoughts on the benchmarking feature in Vitest ⚡️

👉 github.com/vitest-dev/vitest/d

GitHub

Benchmarking Support · vitest-dev vitest · Discussion #7850

Vitest provides an experimental support for benchmarking for quite a while now. So far, the feature is still kept as experimental because we identified several issues that we think should be resolv...

Milestone: vitest crossed 10M weekly npm downloads! ⚡

Vitest 3.1.0 is out! ⚡

Apart from performance improvements and fixes, this release expands your test setup flexibility with new options. Check out the release notes here.

👉 github.com/vitest-dev/vitest/r

GitHub

Release v3.1.0 · vitest-dev/vitest

🚀 Features Introduce %$ option to add number of the test to its title - by @kemuridama in #7412 (df347) Add diff.maxDepth option and set non-Infinity value as a default to reduce crash - by @hi-og...

We published a CVE for a moderate dev server security vulnerability. Please update to the latest versions: 6.2.4, 6.1.3, 6.0.13, 5.4.16, 4.5.11.
github.com/vitejs/vite/securit

GitHub

`server.fs.deny` bypassed for `inline` and `raw` with `?import` query

### Summary The contents of arbitrary files can be returned to the browser. ### Impact Only apps explicitly exposing the Vite dev server to the network (using `--host` or [`server.host` conf...

GitHub

Release v3.1.0 · vitest-dev/vitest

🚀 Features Introduce %$ option to add number of the test to its title - by @kemuridama in #7412 (df347) Add diff.maxDepth option and set non-Infinity value as a default to reduce crash - by @hi-og...

GitHub

vite/packages/vite/CHANGELOG.md at main · vitejs/vite

Next generation frontend tooling. It's fast! Contribute to vitejs/vite development by creating an account on GitHub.

The patched versions also include patches for a browser mode security vulnerability.

github.com/vitest-dev/vitest/s

GitHub

Browser mode serves arbitrary files

### Summary `__screenshot-error` handler on the browser mode HTTP server that responds any file on the file system. Especially if the server is exposed on the network by [`browser.api.host: true`]...

We've released patches for a critical security vulnerability. We strongly encourage projects to upgrade to versions 1.6.1, 2.1.9, or 3.0.5 as soon as possible.

github.com/vitest-dev/vitest/s

GitHub

Remote Code Execution when accessing a malicious website while Vitest API server is listening

### Summary Arbitrary remote Code Execution when accessing a malicious website while Vitest API server is listening by Cross-site WebSocket hijacking (CSWSH) attacks. ### Details When [`api` o...

1

Vite and Vitest are getting a lot of love lately
(2024 StateOfJS survey)

@vite @vitest

vitest.dev

Announcing Vitest 3.0

Vitest 3.0 Release Announcement

Honored to be the most anticipated tech by Matt, who’s literally *the* go-to comprehensive TypeScript educator

👉 bsky.app/profile/mattpocock.co

Bluesky Social

Matt Pocock (@mattpocock.com)

There's literally no tech I'm more bullish on than Vitest. Even TypeScript. If you're using some other test runner, you're making your job harder for no reason.

“It's rare to see a trend as clear as Vitest's ascencion through the ranks over the past few years… it already tops the interest, retention, and overall positivity rankings – and shows no sign of conceding the top spot anytime soon.”

👉 2024.stateofjs.com/en-US/libra

2024.stateofjs.com

State of JavaScript 2024: Testing

The 2024 edition of the annual survey about the latest trends in the JavaScript ecosystem.

We're looking for a good folk from the Vitest community to help us with our social presence in Mastodon. Please comment here if you're interested or join our discord server.

vitejs

Vite 6.0 is out!

Vite 6 Release Announcement

2

What happens when Storybook and Vitest are mashed together?
youtu.be/8t5wxrFpCQY

www.youtube.com

- YouTube

Auf YouTube findest du die angesagtesten Videos und Tracks. Außerdem kannst du eigene Inhalte hochladen und mit Freunden oder gleich der ganzen Welt teilen.

We're thrilled to share the ViteConf 24 Speakers lineup!
On October 3rd & 4th, get ready to learn from the builders pushing modern web development forward ⚡️
Register for free today and invite your communities to the party! 🎉

Vitest and the Future of Testing
bytes.dev/archives/307

Bytes by ui.dev

Bytes #307 - Vitest and the future of testing

Astro's new situationship, programming your own nostalgia machine, and what Hono has in common with my Temu blender.

Registrations for ViteConf 2024 are open! 🎉
Get your free ticket and invite others in your communities! This October 3rd & 4th, the @vite ecosystem gathers for another 24-hour marathon!
Let's keep building together. Lightning fast ⚡️
viteconf.org/?2024

viteconf.org

ViteConf

StackBlitz invites you to ViteConf, an immersive and interactive online event for frontend teams building the next generation of the web with Vite

1

GitHub

Release v2.0.0 · vitest-dev/vitest

Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation. 🚨 Breaking Changes Simplify mock function g...

Vitest 2.0 is here!

- better Browser Mode support (still experimental)
- stability improvements (`forks` pool is now the default)
- new `blob` reporter to merge reports from different processes
- a lot of bug fixes

github.com/vitest-dev/vitest/r

GitHub

Release v2.0.0 · vitest-dev/vitest

Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation. 🚨 Breaking Changes Simplify mock function g...

2

We're overwhelmed by the enthusiasm at the e18e.dev community. Non-stop discussions about how to improve packages' performance. Folks connecting and helping each other to send PRs to widely used libs. If this resonates with you, join and collaborate to cleanup the JS ecosystem 🧡

e18e.dev

e18e

Ecosystem Performance

@vitest surpassed 5 million downloads a week! 🎉

npmjs.com/package/vitest

npm

vitest

Next generation testing framework powered by Vite. Latest version: 1.6.0, last published: 2 months ago. Start using vitest in your project by running `npm i vitest`. There are 646 other projects in the npm registry using vitest.

Vitest Browser Mode is getting new powerful features! 🎉 Read our thoughts on the current state of component testing and future plans for the Browser Mode 👇

github.com/vitest-dev/vitest/d

GitHub

Vitest Browser Mode · vitest-dev vitest · Discussion #5828

It's been some time since we gave any update on the Browser Mode, and Vitest 2.0 seems like a good time to explain how we feel about it. And we have a lot of plans! The initial purpose of Vitest wa...

Vitest 1.6.0: faster “forks” pool, comparing benchmark results, and more
@vitest
github.com/vitest-dev/vitest/r

#ECMAScript #JavaScript #Vitest

GitHub

Release v1.6.0 · vitest-dev/vitest

   🚀 Features Support standalone mode  -  by @sheremet-va in #5565 (bdce0) Custom "snapshotEnvironment" option  -  by @sheremet-va in #5449 (30f72) benchmark: Support comparing benchmark result  -...

Vitest 1.6.0 is out!

- performance improvements to the "forks" pool
- `--standalone` flag to start Vitest in watch mode without running tests
- `--compare` flag to compare benchmark results
- new options to inject scripts in browser mode
- bug fixes

github.com/vitest-dev/vitest/r

GitHub

Release v1.6.0 · vitest-dev/vitest

   🚀 Features Support standalone mode  -  by @sheremet-va in #5565 (bdce0) Custom "snapshotEnvironment" option  -  by @sheremet-va in #5449 (30f72) benchmark: Support comparing benchmark result  -...

💖 New blog post! Let's Forward the Sponsorship to our dependencies!

antfu.me/posts/sponsorship-for

antfu.me

Initiative on Sponsorship Forwarding

An initiative to support open-source ecosystem by Anthony Fu.

Introducing the new official Vitest VS Code extension!

Starting with version 0.6.0, the VS Code extension now supports:
- instant feedback
- .each test declaration
- test tree view
- coverage reporting
- better debugging support
- improved performance

vitest.dev/vscode

marketplace.visualstudio.com

Vitest - Visual Studio Marketplace

Extension for Visual Studio Code - A Vite-native testing framework. It's fast!

Vitest 1.5.0 is out!

- improved error messages for toMatchObject
- improvements to v8 coverage reporting
- custom diff truncation options
- better --inspect support
- bug fixes

github.com/vitest-dev/vitest/r

GitHub

Release v1.5.0 · vitest-dev/vitest

   🚀 Features Add configuration for diff truncation  -  by @willieho in #5073 and #5333 (6797b) Remove unrelated noise from diff for toMatchObject()  -  by @geersch in #5364 (99276) Allow custom h...

📝 New blog post!

Open source is becoming more challenging for me over time. I have written down some of my experiences and what I learned on my journey.

Would love to hear what you think in the comments!
antfu.me/posts/mental-health-o

antfu.me

Mental Health in Open Source

Some of my thoughts on my mental health during my journey in Open Source

8

We just open sourced Rolldown: a Rust-based bundler designed to be used in Vite in the future.

Still WIP, but we'd love to see more contributors involved.

github.com/rolldown-rs/rolldow

GitHub

GitHub - rolldown-rs/rolldown: Fast Rust bundler for JavaScript with Rollup-compatible API.

Fast Rust bundler for JavaScript with Rollup-compatible API. - rolldown-rs/rolldown

3

Help us gather more feedback for Vitest 2.0:
github.com/vitest-dev/vitest/d

GitHub

Vitest 2 · vitest-dev vitest · Discussion #5210

We wanted to start gathering feedback from users for the next major version. Feel free to bring back proposals if you want to expand on them. If possible, create an issue for your feature and link ...

10M weekly npm downloads! ⚡️
Vite downloads are a reflection of the constant growth of a lot of projects! Kudos to all the teams in the ecosystem that keep working together to improve our shared base 💜

My open source work on @vitest and other tools can be supported via Github Sponsors. Take a look at my updated sponsors page and consider supporting! 🙌
github.com/sponsors/AriPerkkio

GitHub

Sponsor @AriPerkkio on GitHub Sponsors

Support AriPerkkio's open source work

Modifying source code with Magicast from UnJS always feels like magic. 🪄
It's amazing how JS proxys can simplify runtime AST traversing and keep code easy to read. Magicast is powering
@vitest `coverage.thresholds.autoUpdate` under-the-hood.

Vitest 1.1.2 fixes severe performance regression introduced back in 0.34.0 among other fixes! If you are using jsdom/happy-dom you should see a noticeable speed improvement depending on the number of test files you have.

github.com/vitest-dev/vitest/r

GitHub

Release v1.1.2 · vitest-dev/vitest

   🐞 Bug Fixes Remove internal flag from UI option in the config  -  by @sheremet-va (7b4a2) browser: Avoid safaridriver collision  -  by @mbland in #4863 (345a2) Resolved failure to find arbitra...