Vitest v0.31.1stable Released May 17, 2023
Impact Score: 5/10

Vitest v0.31.1 โ€” 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 v0.31.1. 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)

  • **watch**: Press `r` should rerun current pattern tests &nbsp;-&nbsp; by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 <samp>(69d27)</samp>

๐Ÿ”ง Bug Fixes & Patches (6)

  • Make sure thrown error is an object &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3298 <samp>(a93be)</samp>
  • Remove duplicate type &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3303 <samp>(5382e)</samp>
  • Throw an error, if tests are collected with a different vitest version &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3301 <samp>(708b1)</samp>
  • Support application/x-gzip metadata in html report &nbsp;-&nbsp; by @mzanelee and **Michael Lee** in https://github.com/vitest-dev/vitest/issues/3333 <samp>(5bf7e)</samp>
  • Correctly restore vi.fn implementation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3341 <samp>(2aff8)</samp>
  • Display error message correctly &nbsp;-&nbsp; by @btea in https://github.com/vitest-dev/vitest/issues/3314 <samp>(a5b3d)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿš€ Features - **watch**: Press `r` should rerun current pattern tests &nbsp;-&nbsp; by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 [<samp>(69d27)</samp>](https://github.com/vitest-dev/vitest/commit/69d27117) ### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Make sure thrown error is an object &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3298 [<samp>(a93be)</samp>](https://github.com/vitest-dev/vitest/commit/a93be56c) - Remove duplicate type &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3303 [<samp>(5382e)</samp>](https://github.com/vitest-dev/vitest/commit/5382e8b6) - Throw an error, if tests are collected with a different vitest version &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3301 [<samp>(708b1)</samp>](https://github.com/vitest-dev/vitest/commit/708b10fe) - Support application/x-gzip metadata in html report &nbsp;-&nbsp; by @mzanelee and **Michael Lee** in https://github.com/vitest-dev/vitest/issues/3333 [<samp>(5bf7e)</samp>](https://github.com/vitest-dev/vitest/commit/5bf7eb6e) - Correctly restore vi.fn implementation &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3341 [<samp>(2aff8)</samp>](https://github.com/vitest-dev/vitest/commit/2aff8c5f) - Display error message correctly &nbsp;-&nbsp; by @btea in https://github.com/vitest-dev/vitest/issues/3314 [<samp>(a5b3d)</samp>](https://github.com/vitest-dev/vitest/commit/a5b3d78e) - Exclude `cwd` from test name filter &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3353 [<samp>(324a9)</samp>](https://github.com/vitest-dev/vitest/commit/324a9b54) - Check error type before modifying it &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3385 [<samp>(c44d9)</samp>](https://github.com/vitest-dev/vitest/commit/c44d9912) - `toMatchInlineSnapshot` fails when file path includes parentheses &nbsp;-&nbsp; by @pacexy in https://github.com/vitest-dev/vitest/issues/3370 and https://github.com/vitest-dev/vitest/issues/3371 [<samp>(dcf13)</samp>](https://github.com/vitest-dev/vitest/commit/dcf1346a) - Stop spying on a method, when it's restored &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3386 [<samp>(2cb1a)</samp>](https://github.com/vitest-dev/vitest/commit/2cb1a15a) - Test repeats &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3369 [<samp>(fb8fc)</samp>](https://github.com/vitest-dev/vitest/commit/fb8fc7ab) - **browser**: - Throw an error if test failed to load &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3390 [<samp>(b354b)</samp>](https://github.com/vitest-dev/vitest/commit/b354bc1c) - Keep default export when rewriting exports &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3389 [<samp>(6501d)</samp>](https://github.com/vitest-dev/vitest/commit/6501d2e3) - **cli**: - Improve cac errors when mixing boolean and dot notation &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3302 [<samp>(93fbd)</samp>](https://github.com/vitest-dev/vitest/commit/93fbd02d) - **reporter**: - Prevent deleting test reports stored in coverage directory &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3331 [<samp>(ddbba)</samp>](https://github.com/vitest-dev/vitest/commit/ddbba396) - **typecheck**: - Correctly resolve custom tsconfig path &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3342 [<samp>(c53ae)</samp>](https://github.com/vitest-dev/vitest/commit/c53ae079) - **vite-node**: - Allow returning id not wrapped in promise &nbsp;-&nbsp; by @danielroe in https://github.com/vitest-dev/vitest/issues/3312 [<samp>(9836c)</samp>](https://github.com/vitest-dev/vitest/commit/9836ccb4) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)