Vitest v0.31.2stable Released May 30, 2023
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.

Compatibility not verified โ€” check source notes
๐Ÿ“„ .MD
โšก 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` &nbsp;-&nbsp; 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 &nbsp;-&nbsp; by @sheremet-va and @dammy001 in https://github.com/vitest-dev/vitest/issues/3449 <samp>(e39ad)</samp>
  • **coverage**: Add `reportOnFailure` option &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3437 <samp>(32b53)</samp>
  • Don't restore methods in automocked dependencies &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3438 <samp>(d1afd)</samp>
  • Dot reporter scrollback buffer spam &nbsp;-&nbsp; by @gtm-nayan in https://github.com/vitest-dev/vitest/issues/3415 <samp>(e6792)</samp>
  • Gracefully exit when first `SIGINT` is received &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3407 <samp>(a2cc2)</samp>
  • `rejects` & `resolves` breaks with thenable objects &nbsp;-&nbsp; by @fenghan34 in https://github.com/vitest-dev/vitest/issues/3456 <samp>(4e996)</samp>
  • Prevent `birpc` timeouts when `Math.random` mock is not restored &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/3460 <samp>(cd5d5)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿš€ Features - Throw error if using inline snapshot inside of `test.each` or `describe.each` &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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) ### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Don't print empty diff &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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) &nbsp;-&nbsp; 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 &nbsp;-&nbsp; 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 &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/3446 [<samp>(306b2)</samp>](https://github.com/vitest-dev/vitest/commit/306b2337) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v0.31.1...v0.31.2)