Vitest v3.1.2stable Released Apr 21, 2025
Impact Score: 5/10

Vitest v3.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 v3.1.2. 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.

โšก Performance & Enhancements (1)

  • **browser**: Improve browser parallelisation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7665 <samp>(816a5)</samp>

๐Ÿ”ง Bug Fixes & Patches (6)

  • Add global `chai` variable in `vitest/globals` (fix: #7474) &nbsp;-&nbsp; by @Jay-Karia in https://github.com/vitest-dev/vitest/issues/7771 and https://github.com/vitest-dev/vitest/issues/7474 <samp>(d9297)</samp>
  • Prevent modifying `test.exclude` when same object passed in `coverage.exclude` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7774 <samp>(c3751)</samp>
  • Fix already hoisted mock &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7815 <samp>(773b1)</samp>
  • Fix test.scoped inheritance &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7814 <samp>(db6c3)</samp>
  • Remove pointer-events-none after resizing the left panel &nbsp;-&nbsp; by @alexprudhomme in https://github.com/vitest-dev/vitest/issues/7811 <samp>(a7e77)</samp>
  • Default to run mode when stdin is not a TTY &nbsp;-&nbsp; by @kentonv, @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7673 <samp>(6358f)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Add global `chai` variable in `vitest/globals` (fix: #7474) &nbsp;-&nbsp; by @Jay-Karia in https://github.com/vitest-dev/vitest/issues/7771 and https://github.com/vitest-dev/vitest/issues/7474 [<samp>(d9297)</samp>](https://github.com/vitest-dev/vitest/commit/d9297920) - Prevent modifying `test.exclude` when same object passed in `coverage.exclude` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7774 [<samp>(c3751)</samp>](https://github.com/vitest-dev/vitest/commit/c375101d) - Fix already hoisted mock &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7815 [<samp>(773b1)</samp>](https://github.com/vitest-dev/vitest/commit/773b10e0) - Fix test.scoped inheritance &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7814 [<samp>(db6c3)</samp>](https://github.com/vitest-dev/vitest/commit/db6c3bcc) - Remove pointer-events-none after resizing the left panel &nbsp;-&nbsp; by @alexprudhomme in https://github.com/vitest-dev/vitest/issues/7811 [<samp>(a7e77)</samp>](https://github.com/vitest-dev/vitest/commit/a7e773bd) - Default to run mode when stdin is not a TTY &nbsp;-&nbsp; by @kentonv, @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/7673 [<samp>(6358f)</samp>](https://github.com/vitest-dev/vitest/commit/6358f216) - Use happy-dom/jsdom types for `envionmentOptions` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7795 [<samp>(67430)</samp>](https://github.com/vitest-dev/vitest/commit/67430083) - **browser**: - Fix transform error before browser server initialization &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7783 [<samp>(5f762)</samp>](https://github.com/vitest-dev/vitest/commit/5f762ec5) - Fix mocking from outside of root &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7789 [<samp>(03f55)</samp>](https://github.com/vitest-dev/vitest/commit/03f55d74) - Scale iframe for non ui case &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6512 [<samp>(c3374)</samp>](https://github.com/vitest-dev/vitest/commit/c3374808) - **coverage**: - `await` profiler calls &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7763 [<samp>(795a6)</samp>](https://github.com/vitest-dev/vitest/commit/795a6433) - Expose profiling timers &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/7820 [<samp>(5652b)</samp>](https://github.com/vitest-dev/vitest/commit/5652bf92) - **deps**: - Update all non-major dependencies &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/7765 [<samp>(7c3df)</samp>](https://github.com/vitest-dev/vitest/commit/7c3dfb17) - Update all non-major dependencies &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/7831 [<samp>(15701)</samp>](https://github.com/vitest-dev/vitest/commit/15701f5d) - **runner**: - Correctly call test hooks and teardown functions &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7775 [<samp>(3c00c)</samp>](https://github.com/vitest-dev/vitest/commit/3c00c875) - Show stacktrace on test timeout error &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7799 [<samp>(df33b)</samp>](https://github.com/vitest-dev/vitest/commit/df33bba7) - **ui**: - Load panel sizes from storage on initial load &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/7265 [<samp>(6555d)</samp>](https://github.com/vitest-dev/vitest/commit/6555d61d) - **vite-node**: - Named export should overwrite export all &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/7846 [<samp>(5ba0d)</samp>](https://github.com/vitest-dev/vitest/commit/5ba0d914) - Add ERR_MODULE_NOT_FOUND code error if module cannot be loaded &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7776 [<samp>(f9eac)</samp>](https://github.com/vitest-dev/vitest/commit/f9eacbc5) ### &nbsp;&nbsp;&nbsp;๐ŸŽ Performance - **browser**: Improve browser parallelisation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/7665 [<samp>(816a5)</samp>](https://github.com/vitest-dev/vitest/commit/816a5c51) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v3.1.1...v3.1.2)