Impact Score: 5/10
Vitest v0.31.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.
โก Executive Summary (TL;DR)
Vitest v0.31.2. 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 (4)
- Throw error if using inline snapshot inside of `test.each` or `describe.each` - by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3360 <samp>(7c2f7)</samp>
- Pass down meta information to Node.js process - by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/3449 <samp>(e39ad)</samp>
- **coverage**: Add `reportOnFailure` option - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3453 <samp>(1988f)</samp>
- **dev**: Add moduleDirectories option to the vitest config - by @fooddilsn and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3337 <samp>(b3602)</samp>
๐ง Bug Fixes & Patches (6)
- Don't print empty diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3437 <samp>(32b53)</samp>
- Don't restore methods in automocked dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3438 <samp>(d1afd)</samp>
- Dot reporter scrollback buffer spam - by @gtm-nayan in https://github.com/vitest-dev/vitest/issues/3415 <samp>(e6792)</samp>
- Gracefully exit when first `SIGINT` is received - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3407 <samp>(a2cc2)</samp>
- `rejects` & `resolves` breaks with thenable objects - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3456 <samp>(4e996)</samp>
- Prevent `birpc` timeouts when `Math.random` mock is not restored - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3460 <samp>(cd5d5)</samp>
๐ View Raw Release Notes (Original Developer Log)
### ๐ Features
- Throw error if using inline snapshot inside of `test.each` or `describe.each` - by @fenghan34 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3360 [<samp>(7c2f7)</samp>](https://github.com/vitest-dev/vitest/commit/7c2f7088)
- Pass down meta information to Node.js process - by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/3449 [<samp>(e39ad)</samp>](https://github.com/vitest-dev/vitest/commit/e39adea8)
- **coverage**: Add `reportOnFailure` option - by @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3453 [<samp>(1988f)</samp>](https://github.com/vitest-dev/vitest/commit/1988fcb4)
- **dev**: Add moduleDirectories option to the vitest config - by @fooddilsn and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3337 [<samp>(b3602)</samp>](https://github.com/vitest-dev/vitest/commit/b3602bcc)
### ๐ Bug Fixes
- Don't print empty diff - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3437 [<samp>(32b53)</samp>](https://github.com/vitest-dev/vitest/commit/32b5361f)
- Don't restore methods in automocked dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3438 [<samp>(d1afd)</samp>](https://github.com/vitest-dev/vitest/commit/d1afd262)
- Dot reporter scrollback buffer spam - by @gtm-nayan in https://github.com/vitest-dev/vitest/issues/3415 [<samp>(e6792)</samp>](https://github.com/vitest-dev/vitest/commit/e6792a94)
- Gracefully exit when first `SIGINT` is received - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3407 [<samp>(a2cc2)</samp>](https://github.com/vitest-dev/vitest/commit/a2cc2b38)
- `rejects` & `resolves` breaks with thenable objects - by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3456 [<samp>(4e996)</samp>](https://github.com/vitest-dev/vitest/commit/4e996ae5)
- Prevent `birpc` timeouts when `Math.random` mock is not restored - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3460 [<samp>(cd5d5)</samp>](https://github.com/vitest-dev/vitest/commit/cd5d58b7)
- Assertion diff message now handle non writable property correctly - by @PCreations in https://github.com/vitest-dev/vitest/issues/3422 [<samp>(f75ab)</samp>](https://github.com/vitest-dev/vitest/commit/f75ab650)
- Extend logging of process timeout errors - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3452 [<samp>(42643)</samp>](https://github.com/vitest-dev/vitest/commit/42643904)
- Support requiring files with `less` extension - by @rluvaton in https://github.com/vitest-dev/vitest/issues/3465 [<samp>(4d045)</samp>](https://github.com/vitest-dev/vitest/commit/4d045695)
- **cli**:
- Improve colors used when erroring - by @ghiscoding and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3349 [<samp>(16681)</samp>](https://github.com/vitest-dev/vitest/commit/16681791)
- **runner**:
- Suite timeout does not take effect - by @btea in https://github.com/vitest-dev/vitest/issues/3455 [<samp>(82547)</samp>](https://github.com/vitest-dev/vitest/commit/82547376)
- **spy**:
- Don't print received calls if there are no calls - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3405 [<samp>(41e11)</samp>](https://github.com/vitest-dev/vitest/commit/41e11dad)
- **typecheck**:
- Show tsc errors not related to test files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3441 [<samp>(a1da5)</samp>](https://github.com/vitest-dev/vitest/commit/a1da5714)
- **types**:
- Fix `PartialMock` with async TReturns - by @ghry5 in https://github.com/vitest-dev/vitest/issues/3462 [<samp>(b664d)</samp>](https://github.com/vitest-dev/vitest/commit/b664d42c)
- **vite-node**:
- Circular import stuck - by @Dunqing in https://github.com/vitest-dev/vitest/issues/3418 [<samp>(632ee)</samp>](https://github.com/vitest-dev/vitest/commit/632eef40)
- Coerce to string in import(dep) - by @jcbhmr and @sheremet-va in https://github.com/vitest-dev/vitest/issues/3430 [<samp>(b72eb)</samp>](https://github.com/vitest-dev/vitest/commit/b72ebdb9)
- Don't remove sourcemap string in source code - by @rxliuli and @sheremet-va in https://github.com/vitest-dev/vitest/issues/2918 and https://github.com/vitest-dev/vitest/issues/3379 [<samp>(02dc9)</samp>](https://github.com/vitest-dev/vitest/commit/02dc9ea7)
- Don't externalize "dist" by default - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3446 [<samp>(306b2)</samp>](https://github.com/vitest-dev/vitest/commit/306b2337)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)