Vitest v2.1.4stable Released Oct 28, 2024
Impact Score: 5/10

Vitest v2.1.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.1.4. Source highlight:    ๐Ÿš€ Features

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.

โœจ New Features & Capabilities (1)

  • **browser**: Allow custom HTML path, respect plugins `transformIndexHtml` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6725 <samp>(16902)</samp>

โšก Performance & Enhancements (1)

  • Use `hash` to replace `createHash` &nbsp;-&nbsp; by @btea in https://github.com/vitest-dev/vitest/issues/6703 <samp>(5d07b)</samp>

๐Ÿ”ง Bug Fixes & Patches (6)

  • Don't normalize drive case letter in root &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6792 <samp>(b28cd)</samp>
  • Fix default browser port &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6700 <samp>(9c518)</samp>
  • Optimize expect-type &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6713 <samp>(07918)</samp>
  • Don't polyfill process.env &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6718 <samp>(da6d2)</samp>
  • Increment browser port automatically if there are several projects with browser.enabled &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6717 <samp>(a9397)</samp>
  • Cleanup keyboard state &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6731 <samp>(19278)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿš€ Features _This patch release includes a non-breaking feature for the experimental Browser Mode that doesn't follow SemVer. If you want to avoid picking up releases like this, make sure to pin the Vitest version in your `package.json`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information._ - **browser**: Allow custom HTML path, respect plugins `transformIndexHtml` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6725 [<samp>(16902)</samp>](https://github.com/vitest-dev/vitest/commit/169028f0) ### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - **windows**: - Don't normalize drive case letter in root &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6792 [<samp>(b28cd)</samp>](https://github.com/vitest-dev/vitest/commit/b28cd2e3) - **browser**: - Fix default browser port &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6700 [<samp>(9c518)</samp>](https://github.com/vitest-dev/vitest/commit/9c518c14) - Optimize expect-type &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6713 [<samp>(07918)</samp>](https://github.com/vitest-dev/vitest/commit/07918538) - Don't polyfill process.env &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6718 [<samp>(da6d2)</samp>](https://github.com/vitest-dev/vitest/commit/da6d2ea7) - Increment browser port automatically if there are several projects with browser.enabled &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6717 [<samp>(a9397)</samp>](https://github.com/vitest-dev/vitest/commit/a939779f) - Cleanup keyboard state &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6731 [<samp>(19278)</samp>](https://github.com/vitest-dev/vitest/commit/19278f4c) - Don't add `v=` queries to setup files imports &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6759 [<samp>(b8258)</samp>](https://github.com/vitest-dev/vitest/commit/b82584c9) - User event cleanup on retry &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6764 [<samp>(bdd15)</samp>](https://github.com/vitest-dev/vitest/commit/bdd15dd1) - Ignore non mocked msw requests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6770 [<samp>(9d9ba)</samp>](https://github.com/vitest-dev/vitest/commit/9d9bad5b) - Initiate MSW in the same frame as tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6772 [<samp>(2444f)</samp>](https://github.com/vitest-dev/vitest/commit/2444ff22) - **deps**: - Update dependency sirv to v3 &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/6701 [<samp>(fde5d)</samp>](https://github.com/vitest-dev/vitest/commit/fde5d509) - **expect**: - Correct behavior of `toThrowError` with empty string parameter &nbsp;-&nbsp; by @shulaoda in https://github.com/vitest-dev/vitest/issues/6710 [<samp>(a6129)</samp>](https://github.com/vitest-dev/vitest/commit/a61293e9) - **mocker**: - Remove spy from peer dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6777 [<samp>(3a8b5)</samp>](https://github.com/vitest-dev/vitest/commit/3a8b56bf) - **vitest**: - Clarify slowTestThreshold, print slow tests in non-TTY mode &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6715 [<samp>(2e6aa)</samp>](https://github.com/vitest-dev/vitest/commit/2e6aa647) - Print warnings form Vite plugins &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6724 [<samp>(121b1)</samp>](https://github.com/vitest-dev/vitest/commit/121b161f) - Don't fail if the working directory starts with a lowercase drive letter &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6779 [<samp>(df6d7)</samp>](https://github.com/vitest-dev/vitest/commit/df6d750b) - Silence import analysis warning &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6785 [<samp>(39041)</samp>](https://github.com/vitest-dev/vitest/commit/39041ee5) - **vitest,runner**: - Simplify `test.extend` type exports &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6707 [<samp>(e5c38)</samp>](https://github.com/vitest-dev/vitest/commit/e5c388f0) ### &nbsp;&nbsp;&nbsp;๐ŸŽ Performance - Use `hash` to replace `createHash` &nbsp;-&nbsp; by @btea in https://github.com/vitest-dev/vitest/issues/6703 [<samp>(5d07b)</samp>](https://github.com/vitest-dev/vitest/commit/5d07bba6) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.3...v2.1.4)