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.
โก 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 - 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 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3298 <samp>(a93be)</samp>
- Remove duplicate type - 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 - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3301 <samp>(708b1)</samp>
- Support application/x-gzip metadata in html report - by @mzanelee and **Michael Lee** in https://github.com/vitest-dev/vitest/issues/3333 <samp>(5bf7e)</samp>
- Correctly restore vi.fn implementation - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3341 <samp>(2aff8)</samp>
- Display error message correctly - by @btea in https://github.com/vitest-dev/vitest/issues/3314 <samp>(a5b3d)</samp>
๐ View Raw Release Notes (Original Developer Log)
### ๐ Features
- **watch**: Press `r` should rerun current pattern tests - by @Dunqing and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3305 [<samp>(69d27)</samp>](https://github.com/vitest-dev/vitest/commit/69d27117)
### ๐ Bug Fixes
- Make sure thrown error is an object - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - by @danielroe in https://github.com/vitest-dev/vitest/issues/3312 [<samp>(9836c)</samp>](https://github.com/vitest-dev/vitest/commit/9836ccb4)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v0.31.0...v0.31.1)