Vitest v2.1.2stable Released Oct 02, 2024
Impact Score: 5/10

Vitest v2.1.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 v2.1.2. Source highlight:    ๐Ÿž Bug Fixes

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.

๐Ÿ”ง Bug Fixes & Patches (6)

  • Move `Vitest.setServer` to post `configureServer` hook to enable import analysis for workspace config loading &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6584 <samp>(e7f35)</samp>
  • Clear `BenchmarkResult.samples` array to reduce memory usage &nbsp;-&nbsp; by @hi-ogawa and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6541 <samp>(a6407)</samp>
  • Fix dynamic import inside worker &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6569 <samp>(ea2d4)</samp>
  • Fix browser mock factory event race condition &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6530 <samp>(f131f)</samp>
  • Serve ui assets as static &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6564 <samp>(adcda)</samp>
  • Update solidjs testing library lib &nbsp;-&nbsp; by @CamilleTeruel in https://github.com/vitest-dev/vitest/issues/6548 <samp>(91442)</samp>
๐Ÿ“„ View Raw Release Notes (Original Developer Log)
### &nbsp;&nbsp;&nbsp;๐Ÿž Bug Fixes - Move `Vitest.setServer` to post `configureServer` hook to enable import analysis for workspace config loading &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6584 [<samp>(e7f35)</samp>](https://github.com/vitest-dev/vitest/commit/e7f35214) - **benchmark**: - Clear `BenchmarkResult.samples` array to reduce memory usage &nbsp;-&nbsp; by @hi-ogawa and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6541 [<samp>(a6407)</samp>](https://github.com/vitest-dev/vitest/commit/a6407afc) - **browser**: - Fix dynamic import inside worker &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6569 [<samp>(ea2d4)</samp>](https://github.com/vitest-dev/vitest/commit/ea2d429b) - Fix browser mock factory event race condition &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6530 [<samp>(f131f)</samp>](https://github.com/vitest-dev/vitest/commit/f131f93b) - Serve ui assets as static &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6564 [<samp>(adcda)</samp>](https://github.com/vitest-dev/vitest/commit/adcdaee8) - Update solidjs testing library lib &nbsp;-&nbsp; by @CamilleTeruel in https://github.com/vitest-dev/vitest/issues/6548 [<samp>(91442)</samp>](https://github.com/vitest-dev/vitest/commit/91442dfc) - Use `data:` protocol on preview provider file upload &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/6501 [<samp>(e9821)</samp>](https://github.com/vitest-dev/vitest/commit/e9821f70) - Fix base for client script &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6510 [<samp>(f9528)</samp>](https://github.com/vitest-dev/vitest/commit/f952874e) - Throw an error if "@vitest/browser/context" is imported outside of the browser mode &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6570 [<samp>(383f1)</samp>](https://github.com/vitest-dev/vitest/commit/383f1791) - **coverage**: - Remove empty coverage folder on test failure too &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6547 [<samp>(1371c)</samp>](https://github.com/vitest-dev/vitest/commit/1371ca6a) - Include `*.astro` by default &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6565 [<samp>(f8ff7)</samp>](https://github.com/vitest-dev/vitest/commit/f8ff76a9) - `cleanOnRerun: false` to invalidate previous results &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6592 [<samp>(88bde)</samp>](https://github.com/vitest-dev/vitest/commit/88bde99c) - **expect**: - Fix `toBeDefined` with `expect.poll` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6562 [<samp>(f7da6)</samp>](https://github.com/vitest-dev/vitest/commit/f7da6199) - **forks**: - Fix `--cpu-prof` and `--heap-prof` not working by default &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/pull/6555 [<samp>(2e4d894)</samp>](https://github.com/vitest-dev/vitest/commit/2e4d894) - **runner**: - Mark tests as skipped when `beforeAll` failed &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6524 [<samp>(fb797)</samp>](https://github.com/vitest-dev/vitest/commit/fb79792d) - Support fixture parsing of lowered async syntax &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6531 [<samp>(b553c)</samp>](https://github.com/vitest-dev/vitest/commit/b553c7d6) - Fix fixture parsing of lowered async syntax for non arrow functions &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6575 [<samp>(3de00)</samp>](https://github.com/vitest-dev/vitest/commit/3de00ab6) - Guard test hook callback &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6604 [<samp>(14971)</samp>](https://github.com/vitest-dev/vitest/commit/1497134e) - Run `onTestFinished` and `onTestFailed` during `retry` and `repeats` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6609 [<samp>(c5e29)</samp>](https://github.com/vitest-dev/vitest/commit/c5e29098) - **ui**: - List tests on ui when `--standalone` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6577 [<samp>(d0bf8)</samp>](https://github.com/vitest-dev/vitest/commit/d0bf89d3) - **vite-node**: - Fix esm false-detection inside comment &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6506 [<samp>(91f85)</samp>](https://github.com/vitest-dev/vitest/commit/91f85997) - **vitest**: - Install dependencies with the same version when prompted &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6611 [<samp>(ed8b7)</samp>](https://github.com/vitest-dev/vitest/commit/ed8b7c08) - Make env.SSR consistent between different pools &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6616 [<samp>(8a8d3)</samp>](https://github.com/vitest-dev/vitest/commit/8a8d3f03) - Don't start a websocket server if api is disabled &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6617 [<samp>(82140)</samp>](https://github.com/vitest-dev/vitest/commit/821400b8) - **workspace**: - Fix glob pattern detection &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6502 [<samp>(7727c)</samp>](https://github.com/vitest-dev/vitest/commit/7727ca87) - Ignore DS_Store by default &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6571 [<samp>(d2a86)</samp>](https://github.com/vitest-dev/vitest/commit/d2a86ff5) ##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v2.1.1...v2.1.2)