Vitest v4.1.2stable Released Mar 26, 2026
Impact Score: 5/10

Vitest v4.1.2 โ€” 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 v4.1.2. Source highlight: This release bumps Vitest's `flatted` version and removes version pinning to resolve `flatted`'s CVE related issues (https://github.com/vitest-dev/vitest/issues/9975).

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)

  • Don't resolve `setupFiles` from parent directory &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 <samp>(7aa93)</samp>
  • Ensure sequential mock/unmock resolution &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9830 <samp>(7c065)</samp>
  • **browser**: Take failure screenshot if `toMatchScreenshot` can't capture a stable screenshot &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9847 <samp>(faace)</samp>
  • **coverage**: Correct `coverageConfigDefaults` values and types &nbsp;-&nbsp; by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 <samp>(b3c99)</samp>
  • **pretty-format**: Fix output limit over counting &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 <samp>(d3b7a)</samp>
  • Disable colors if agent is detected &nbsp;-&nbsp; by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 <samp>(6f97b)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
This release bumps Vitest's `flatted` version and removes version pinning to resolve `flatted`'s CVE related issues (https://github.com/vitest-dev/vitest/issues/9975). ### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Don't resolve `setupFiles` from parent directory &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 [<samp>(7aa93)</samp>](https://github.com/vitest-dev/vitest/commit/7aa937776) - Ensure sequential mock/unmock resolution &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9830 [<samp>(7c065)</samp>](https://github.com/vitest-dev/vitest/commit/7c06598db) - **browser**: Take failure screenshot if `toMatchScreenshot` can't capture a stable screenshot &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9847 [<samp>(faace)</samp>](https://github.com/vitest-dev/vitest/commit/faace1fbe) - **coverage**: Correct `coverageConfigDefaults` values and types &nbsp;-&nbsp; by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 [<samp>(b3c99)</samp>](https://github.com/vitest-dev/vitest/commit/b3c992cb2) - **pretty-format**: Fix output limit over counting &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 [<samp>(d3b7a)</samp>](https://github.com/vitest-dev/vitest/commit/d3b7a40fa) - Disable colors if agent is detected &nbsp;-&nbsp; by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 [<samp>(6f97b)</samp>](https://github.com/vitest-dev/vitest/commit/6f97b55dd) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.1...v4.1.2)