Vitest v2.0.4stable Released Jul 22, 2024
Impact Score: 5/10

Vitest v2.0.4 โ€” Release Notes & Engineering Impact

Source available โ€” automated, not human-reviewed

Component: vitest ยท Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-01.

Compatibility not verified โ€” check source notes
๐Ÿ“„ .MD
โšก Executive Summary (TL;DR)

Vitest v2.0.4. Source highlight:    ๐Ÿž Bug Fixes

Who Does This Impact? (Role-Based Analysis)

๐Ÿ’ป Software Engineers & Devs

Check the source notes against the package and APIs you use before upgrading.

๐Ÿ“Š Product & Engineering Leads

Use the documented changes to assess relevance to your product; release frequency alone is not a quality measure.

โš™๏ธ DevOps & Security

Verify the target version, runtime requirements and rollback procedure in the official documentation.

๐Ÿ”ง Bug Fixes & Patches (6)

  • One-line environment options &nbsp;-&nbsp; by @hahanein in https://github.com/vitest-dev/vitest/issues/5105 <samp>(38269)</samp>
  • Resolve assets imported with `require` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6159 <samp>(807a2)</samp>
  • Don't panic if @vitest/browser is installed outside of project root &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6135 <samp>(ccfcd)</samp>
  • Set global filepath &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6190 <samp>(0d0b4)</samp>
  • Allow preview and open in the editor screenshot error from ui &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/6113 <samp>(2d620)</samp>
  • Global thresholds to include files from glob thresholds &nbsp;-&nbsp; by @thor-juhasz and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6172 <samp>(02e3f)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - One-line environment options &nbsp;-&nbsp; by @hahanein in https://github.com/vitest-dev/vitest/issues/5105 [<samp>(38269)</samp>](https://github.com/vitest-dev/vitest/commit/38269415) - Resolve assets imported with `require` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6159 [<samp>(807a2)</samp>](https://github.com/vitest-dev/vitest/commit/807a2cbc) - **browser**: - Don't panic if @vitest/browser is installed outside of project root &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6135 [<samp>(ccfcd)</samp>](https://github.com/vitest-dev/vitest/commit/ccfcd488) - Set global filepath &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6190 [<samp>(0d0b4)</samp>](https://github.com/vitest-dev/vitest/commit/0d0b46b1) - Allow preview and open in the editor screenshot error from ui &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/6113 [<samp>(2d620)</samp>](https://github.com/vitest-dev/vitest/commit/2d62051f) - **coverage**: - Global thresholds to include files from glob thresholds &nbsp;-&nbsp; by @thor-juhasz and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6172 [<samp>(02e3f)</samp>](https://github.com/vitest-dev/vitest/commit/02e3f003) - Consistent type-only file handling &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6183 [<samp>(90576)</samp>](https://github.com/vitest-dev/vitest/commit/90576148) - Ignore `*.cts` files &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6189 [<samp>(5da45)</samp>](https://github.com/vitest-dev/vitest/commit/5da45db1) - Add `thresholds.<glob>.100` option &nbsp;-&nbsp; by @thor-juhasz and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6174 [<samp>(f6845)</samp>](https://github.com/vitest-dev/vitest/commit/f68453f8) - **spy**: - Fix `mockImplementation` for function overload and unions &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6181 [<samp>(7a75b)</samp>](https://github.com/vitest-dev/vitest/commit/7a75bd4c) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.0.3...v2.0.4)