---
name: vitest
slug: vitest
type: github
source_url: https://github.com/vitest-dev/vitest
organization: Vitest
organization_slug: vitest
total_releases: 61
latest_version: v4.1.9
latest_date: 2026-06-16
last_updated: 2026-06-24
tracking_since: 2024-09-13
canonical: https://releases.sh/vitest/vitest
organization_url: https://releases.sh/vitest
---

<Release version="v4.1.9" date="June 16, 2026" published="2026-06-16T06:13:58.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.9">
### 🐞 Bug Fixes

- Fix `importOriginal` with optimizer and query import [backport to v4] - by **Hiroshi Ogawa**, **David Harris**, **Codex**and **Vladimir** in https://github.com/vitest-dev/vitest/issues/10546 [<samp>(a5180)</samp>](https://github.com/vitest-dev/vitest/commit/a5180190c)
- **browser**:
  - Wait for orchestrator readiness before resolving browser sessions [backport to v4] - by **Vladimir** and **Séamus O'Connor** in https://github.com/vitest-dev/vitest/issues/10555 [<samp>(7fb29)</samp>](https://github.com/vitest-dev/vitest/commit/7fb29651a)
  - Wait for iframe tester readiness before preparing  [backport to v4] - by **Vladimir** and **Séamus O'Connor** in https://github.com/vitest-dev/vitest/issues/10497 and https://github.com/vitest-dev/vitest/issues/10556 [<samp>(fbc62)</samp>](https://github.com/vitest-dev/vitest/commit/fbc626c40)
- **mocker**:
  - Hoist vi.mock() for vite-plus/test imports [backport to v4] - by **Hiroshi Ogawa**, **LongYinan**, **Claude Opus 4.8** and **Vladimir** in https://github.com/vitest-dev/vitest/issues/10548 [<samp>(2c955)</samp>](https://github.com/vitest-dev/vitest/commit/2c9559c02)
- **pool**:
  - Prevent test run hang on worker crash  [backport to v4] - by **Ari Perkkiö** and **Jattioui Ismail** in https://github.com/vitest-dev/vitest/issues/10543 and https://github.com/vitest-dev/vitest/issues/10564 [<samp>(934b0)</samp>](https://github.com/vitest-dev/vitest/commit/934b0f587)

##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.8...v4.1.9)
</Release>

<Release version="v3.2.6" date="June 1, 2026" published="2026-06-01T09:39:20.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v3.2.6">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Pin last supported vite-node version &nbsp;-&nbsp; by @sheremet-va [<samp>(16f12)</samp>](https://github.com/vitest-dev/vitest/commit/16f120d05)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v3.2.5...v3.2.6)
</Release>

<Release version="v3.2.5" date="June 1, 2026" published="2026-06-01T08:35:18.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v3.2.5">
### &nbsp;&nbsp;&nbsp;🚀 Features

- **api**: Add `allowWrite` and `allowExec` options to `api` [backport to v3] &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10445 [<samp>(af88b)</samp>](https://github.com/vitest-dev/vitest/commit/af88b1f5d)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **browser**: Disable client `cdp` API when `allowWrite/allowExec: false` [backport to v3] &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10456 [<samp>(385a1)</samp>](https://github.com/vitest-dev/vitest/commit/385a1aefd)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v3.2.4...v3.2.5)
</Release>

<Release version="v4.1.8" date="June 1, 2026" published="2026-06-01T08:15:20.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.8">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **browser**:
  - Disable client `cdp` API when `allowWrite/allowExec: false` [backport to v4] &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10450 [<samp>(e4067)</samp>](https://github.com/vitest-dev/vitest/commit/e4067b3b1)
  - Remove orphaned Playwright route when same module is mocked via multiple ids [backport to v4] &nbsp;-&nbsp; by @toxik and @Zelys-DFKH in https://github.com/vitest-dev/vitest/issues/10474 [<samp>(675b4)</samp>](https://github.com/vitest-dev/vitest/commit/675b4343f)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.7...v4.1.8)
</Release>

<Release version="v4.1.7" date="May 20, 2026" published="2026-05-20T07:20:12.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.7">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **runner**: Limit concurrency per task branch in addition to per leaf callbacks (backport) &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10384 [<samp>(4f0f2)</samp>](https://github.com/vitest-dev/vitest/commit/4f0f2a1ee)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.6...v4.1.7)
</Release>

<Release version="v4.1.6" date="May 11, 2026" published="2026-05-11T14:38:28.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.6">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **browser**: Provide project reference in `ToMatchScreenshotResolvePath` &nbsp;-&nbsp; by @macarie and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10138 [<samp>(31882)</samp>](https://github.com/vitest-dev/vitest/commit/31882607c)
- Global `sequence.concurrent: true` with top-level `test(..., { concurrent: false })` + depreacte `sequential` test API and options &nbsp;-&nbsp; by @hi-ogawa, **Codex** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10196 [<samp>(2847d)</samp>](https://github.com/vitest-dev/vitest/commit/2847dfa2a)
- **browser**: Simplify orchestrator otel carrier &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10285 [<samp>(18af9)</samp>](https://github.com/vitest-dev/vitest/commit/18af98cee)

### &nbsp;&nbsp;&nbsp;🏎 Performance

- Stringify diff objects only once &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10276 [<samp>(9f7b1)</samp>](https://github.com/vitest-dev/vitest/commit/9f7b1528c)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.5...v4.1.6)
</Release>

<Release version="v4.1.5" date="April 21, 2026" published="2026-04-21T11:04:32.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.5">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **coverage**: Istanbul to support `instrumenter` option &nbsp;-&nbsp; by @BartWaardenburg and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10119 [<samp>(0e0ff)</samp>](https://github.com/vitest-dev/vitest/commit/0e0ff41c7)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- --project negation excludes browser instances &nbsp;-&nbsp; by @felamaslen in https://github.com/vitest-dev/vitest/issues/10131 [<samp>(9423d)</samp>](https://github.com/vitest-dev/vitest/commit/9423dc084)
- Project color label on html reporter &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10142 [<samp>(596f7)</samp>](https://github.com/vitest-dev/vitest/commit/596f73986)
- Fix `vi.defineHelper` called as object method &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10163 [<samp>(122c2)</samp>](https://github.com/vitest-dev/vitest/commit/122c25b5b)
- Alias `agent` reporter to `minimal` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10157 [<samp>(663b9)</samp>](https://github.com/vitest-dev/vitest/commit/663b99fe3)
- Respect diff config options in soft assertions &nbsp;-&nbsp; by @Copilot, **sheremet-va** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8696 [<samp>(9787d)</samp>](https://github.com/vitest-dev/vitest/commit/9787dedad)
- Respect diff config options in soft assertions " &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8696 [<samp>(7dc6d)</samp>](https://github.com/vitest-dev/vitest/commit/7dc6d54fd)
- **ast-collect**: Recognize __vi_import_ prefix in static test discovery &nbsp;-&nbsp; by @Yejneshwar in https://github.com/vitest-dev/vitest/issues/10129 [<samp>(32546)</samp>](https://github.com/vitest-dev/vitest/commit/325463ab2)
- **coverage**: Descriptive error message when reports directory is removed during test run &nbsp;-&nbsp; by @DaveT1991 and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10117 [<samp>(14133)</samp>](https://github.com/vitest-dev/vitest/commit/1413382e1)
- **snapshot**: Increase default snapshot max output length &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10150 [<samp>(21e66)</samp>](https://github.com/vitest-dev/vitest/commit/21e66ff63)
- **ui**: Fix jsx/tsx syntax highlight &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10152 [<samp>(f1b1f)</samp>](https://github.com/vitest-dev/vitest/commit/f1b1f6c7b)
- **web-worker**: Support MessagePort objects referenced inside postMessage data &nbsp;-&nbsp; by @whitphx and **Claude Opus 4.6 (1M context)** in https://github.com/vitest-dev/vitest/issues/9927 and https://github.com/vitest-dev/vitest/issues/10124 [<samp>(7ad7d)</samp>](https://github.com/vitest-dev/vitest/commit/7ad7d39af)
- **api**: Make test-specification options writable &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10154 [<samp>(6abd5)</samp>](https://github.com/vitest-dev/vitest/commit/6abd557b7)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.4...v4.1.5)
</Release>

<Release version="v4.1.4" date="April 9, 2026" published="2026-04-09T07:37:17.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.4">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **coverage**:
  - Default to text reporter `skipFull` if agent detected &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10018 [<samp>(53757)</samp>](https://github.com/vitest-dev/vitest/commit/53757804c)
- **experimental**:
  - Expose `assertion` as a public field &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10095 [<samp>(a120e)</samp>](https://github.com/vitest-dev/vitest/commit/a120e3ab8)
  - Support aria snapshot &nbsp;-&nbsp; by @hi-ogawa, **Claude Opus 4.6 (1M context)**, @AriPerkkio, **Codex** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9668 [<samp>(d4fbb)</samp>](https://github.com/vitest-dev/vitest/commit/d4fbb5cc9)
- **reporter**:
  - Add filterMeta option to json reporter &nbsp;-&nbsp; by @nami8824 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10078 [<samp>(b77de)</samp>](https://github.com/vitest-dev/vitest/commit/b77de968e)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Use "black" foreground for labeled terminal message to ensure contrast &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10076 [<samp>(203f0)</samp>](https://github.com/vitest-dev/vitest/commit/203f07af7)
- Make `expect(..., message)` consistent as error message prefix &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10068 [<samp>(a1b5f)</samp>](https://github.com/vitest-dev/vitest/commit/a1b5f0f4f)
- Do not hoist imports whose names match class properties . &nbsp;-&nbsp; by @SunsetFi in https://github.com/vitest-dev/vitest/issues/10093 and https://github.com/vitest-dev/vitest/issues/10094 [<samp>(0fc4b)</samp>](https://github.com/vitest-dev/vitest/commit/0fc4b47e0)
- **browser**: Spread user server options into browser Vite server in project &nbsp;-&nbsp; by @GoldStrikeArch in https://github.com/vitest-dev/vitest/issues/10049 [<samp>(65c9d)</samp>](https://github.com/vitest-dev/vitest/commit/65c9d55eb)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.3...v4.1.4)
</Release>

<Release version="v4.1.3" date="April 7, 2026" published="2026-04-07T09:56:19.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.3">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- Add `experimental.preParse` flag &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10070 [<samp>(78273)</samp>](https://github.com/vitest-dev/vitest/commit/7827363bd)
- Support `browser.locators.exact` option &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10013 [<samp>(48799)</samp>](https://github.com/vitest-dev/vitest/commit/487990a19)
- Add `TestAttachment.bodyEncoding` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9969 [<samp>(89ca0)</samp>](https://github.com/vitest-dev/vitest/commit/89ca0e254)
- Support custom snapshot matcher &nbsp;-&nbsp; by @hi-ogawa, **Claude Sonnet 4.6** and **Codex** in https://github.com/vitest-dev/vitest/issues/9973 [<samp>(59b0e)</samp>](https://github.com/vitest-dev/vitest/commit/59b0e6411)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Advance fake timers with `expect.poll` interval &nbsp;-&nbsp; by @hi-ogawa and **Claude Sonnet 4.6** in https://github.com/vitest-dev/vitest/issues/10022 [<samp>(3f5bf)</samp>](https://github.com/vitest-dev/vitest/commit/3f5bfa365)
- Add `@vitest/coverage-v8` and `@vitest/coverage-istanbul` as optional dependency &nbsp;-&nbsp; by @alan-agius4 in https://github.com/vitest-dev/vitest/issues/10025 [<samp>(146d4)</samp>](https://github.com/vitest-dev/vitest/commit/146d4f0a0)
- Fix `defineHelper` for webkit async stack trace + update playwright 1.59.0 &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10036 [<samp>(5a5fa)</samp>](https://github.com/vitest-dev/vitest/commit/5a5fa49fe)
- Fix suite hook throwing errors for unused auto test-scoped fixture &nbsp;-&nbsp; by @hi-ogawa and **Claude Sonnet 4.6** in https://github.com/vitest-dev/vitest/issues/10035 [<samp>(39865)</samp>](https://github.com/vitest-dev/vitest/commit/398657e8d)
- **expect**:
  - Remove `JestExtendError.context` from verbose error reporting &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9983 [<samp>(66751)</samp>](https://github.com/vitest-dev/vitest/commit/66751c9e8)
  - Don't leak "runner" types &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10004 [<samp>(ec204)</samp>](https://github.com/vitest-dev/vitest/commit/ec2045543)
- **snapshot**:
  - Fix flagging obsolete snapshots for snapshot properties mismatch &nbsp;-&nbsp; by @hi-ogawa and **Claude Sonnet 4.6** in https://github.com/vitest-dev/vitest/issues/9986 [<samp>(6b869)</samp>](https://github.com/vitest-dev/vitest/commit/6b869156b)
  - Export custom snapshot matcher helper from `vitest` &nbsp;-&nbsp; by @hi-ogawa and **Codex** in https://github.com/vitest-dev/vitest/issues/10042 [<samp>(691d3)</samp>](https://github.com/vitest-dev/vitest/commit/691d341fd)
- **ui**:
  - Don't leak vite types &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10005 [<samp>(fdff1)</samp>](https://github.com/vitest-dev/vitest/commit/fdff1bf9a)
- **vm**:
  - Fix external module resolve error with deps optimizer query &nbsp;-&nbsp; by @hi-ogawa and **Claude Sonnet 4.6** in https://github.com/vitest-dev/vitest/issues/10024 [<samp>(9dbf4)</samp>](https://github.com/vitest-dev/vitest/commit/9dbf47786)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.2...v4.1.3)
</Release>

<Release version="v4.1.2" date="March 26, 2026" published="2026-03-26T14:37:17.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.2">
This release bumps Vitest's `flatted` version and removes version pinning to resolve `flatted`'s CVE related issues (https://github.com/vitest-dev/vitest/issues/9975).

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Don't resolve `setupFiles` from parent directory &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9960 [<samp>(7aa93)</samp>](https://github.com/vitest-dev/vitest/commit/7aa937776)
- Ensure sequential mock/unmock resolution &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9830 [<samp>(7c065)</samp>](https://github.com/vitest-dev/vitest/commit/7c06598db)
- **browser**: Take failure screenshot if `toMatchScreenshot` can't capture a stable screenshot &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9847 [<samp>(faace)</samp>](https://github.com/vitest-dev/vitest/commit/faace1fbe)
- **coverage**: Correct `coverageConfigDefaults` values and types &nbsp;-&nbsp; by @Arthie in https://github.com/vitest-dev/vitest/issues/9940 [<samp>(b3c99)</samp>](https://github.com/vitest-dev/vitest/commit/b3c992cb2)
- **pretty-format**: Fix output limit over counting &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9965 [<samp>(d3b7a)</samp>](https://github.com/vitest-dev/vitest/commit/d3b7a40fa)
- Disable colors if agent is detected &nbsp;-&nbsp; by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9851 [<samp>(6f97b)</samp>](https://github.com/vitest-dev/vitest/commit/6f97b55dd)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.1...v4.1.2)
</Release>

<Release version="v4.1.1" date="March 23, 2026" published="2026-03-23T14:59:16.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.1">
### &nbsp;&nbsp;&nbsp;🚀 Features

- **experimental**:
  - Expose `matchesTags` to test if the current filter matches tags &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9913 [<samp>(eec53)</samp>](https://github.com/vitest-dev/vitest/commit/eec53d9f5)
  - Introduce `experimental.vcsProvider` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9928 [<samp>(56115)</samp>](https://github.com/vitest-dev/vitest/commit/561150036)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Mark `TestProject.testFilesList` internal properly &nbsp;-&nbsp; by @sapphi-red in https://github.com/vitest-dev/vitest/issues/9867 [<samp>(54f26)</samp>](https://github.com/vitest-dev/vitest/commit/54f2660f5)
- Detect fixture that returns without calling `use` &nbsp;-&nbsp; by @oilater in https://github.com/vitest-dev/vitest/issues/9831 and https://github.com/vitest-dev/vitest/issues/9861 [<samp>(633ae)</samp>](https://github.com/vitest-dev/vitest/commit/633ae2303)
- Drop vite 8.beta support &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9862 [<samp>(b78f5)</samp>](https://github.com/vitest-dev/vitest/commit/b78f5389d)
- Type regression in vi.mocked() static class methods &nbsp;-&nbsp; by @purepear and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9857 [<samp>(90926)</samp>](https://github.com/vitest-dev/vitest/commit/90926641b)
- Properly re-evaluate actual modules of mocked external &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9898 [<samp>(ae5ec)</samp>](https://github.com/vitest-dev/vitest/commit/ae5ec03ef)
- Preserve coverage report when html reporter overlaps &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9889 [<samp>(2d81a)</samp>](https://github.com/vitest-dev/vitest/commit/2d81ad897)
- Provide `vi.advanceTimers` to the preview provider &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9891 [<samp>(1bc3e)</samp>](https://github.com/vitest-dev/vitest/commit/1bc3e63be)
- Don't leak event listener in playwright provider &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9910 [<samp>(d9355)</samp>](https://github.com/vitest-dev/vitest/commit/d93550ff7)
- Open browser in `--standalone` mode without running tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9911 [<samp>(e78ad)</samp>](https://github.com/vitest-dev/vitest/commit/e78adcf97)
- Guard disposable and optional `body` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9912 [<samp>(6fdb2)</samp>](https://github.com/vitest-dev/vitest/commit/6fdb2ba61)
- Resolve `retry.condition` RegExp serialization issue &nbsp;-&nbsp; by @nstepien and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9942 [<samp>(7b605)</samp>](https://github.com/vitest-dev/vitest/commit/7b6054328)
- **collect**:
  - Don't treat extra props on `test` return as tests &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9871 [<samp>(141e7)</samp>](https://github.com/vitest-dev/vitest/commit/141e72aa1)
- **coverage**:
  - Simplify provider types &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9931 [<samp>(aaf9f)</samp>](https://github.com/vitest-dev/vitest/commit/aaf9f18ae)
  - Load built-in provider without module runner &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9939 [<samp>(bf892)</samp>](https://github.com/vitest-dev/vitest/commit/bf8920817)
- **expect**:
  - Soft assertions continue after .resolves/.rejects promise errors &nbsp;-&nbsp; by @mixelburg, **Maks Pikov**, **Claude Opus 4.6 (1M context)** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9843 [<samp>(6d74b)</samp>](https://github.com/vitest-dev/vitest/commit/6d74b4948)
  - Fix sinon-chai style API &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9943 [<samp>(0f08d)</samp>](https://github.com/vitest-dev/vitest/commit/0f08dda2c)
- **pretty-format**:
  - Limit output for large object &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6 (1M context)** in https://github.com/vitest-dev/vitest/issues/9949 [<samp>(0d5f9)</samp>](https://github.com/vitest-dev/vitest/commit/0d5f9d6ef)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.1.0...v4.1.1)
</Release>

<Release version="v4.1.0" date="March 12, 2026" published="2026-03-12T14:06:59.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.1.0">
Vitest 4.1 is out!

This release page lists all changes made to the project during the 4.1 beta. To get a review of all the new features, read our [blog post](https://vitest.dev/blog/vitest-4-1).

### &nbsp;&nbsp;&nbsp;🚀 Features

- Return a disposable from doMock() &nbsp;-&nbsp; by @kirkwaiblinger in https://github.com/vitest-dev/vitest/issues/9332 [<samp>(e3e65)</samp>](https://github.com/vitest-dev/vitest/commit/e3e659a96)
- Added chai style assertions &nbsp;-&nbsp; by @ronnakamoto and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8842 [<samp>(841df)</samp>](https://github.com/vitest-dev/vitest/commit/841df9ac5)
- Update to sinon/fake-timers v15 and add `setTickMode` to timer controls &nbsp;-&nbsp; by @atscott and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8726 [<samp>(4b480)</samp>](https://github.com/vitest-dev/vitest/commit/4b480aaed)
- Expose matcher types &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9448 [<samp>(3e4b9)</samp>](https://github.com/vitest-dev/vitest/commit/3e4b913b1)
- Add `toTestSpecification` to reported tasks &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9464 [<samp>(1a470)</samp>](https://github.com/vitest-dev/vitest/commit/1a4705da9)
- Show a warning if `vi.mock` or `vi.hoisted` are declared outside of top level of the module &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9387 [<samp>(5db54)</samp>](https://github.com/vitest-dev/vitest/commit/5db54a468)
- Track and display expectedly failed tests (.fails) in UI and CLI &nbsp;-&nbsp; by @Copilot, **sheremet-va** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9476 [<samp>(77d75)</samp>](https://github.com/vitest-dev/vitest/commit/77d75fd34)
- Support tags &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9478 [<samp>(de7c8)</samp>](https://github.com/vitest-dev/vitest/commit/de7c8a521)
- Implement `aroundEach` and `aroundAll` hooks &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9450 [<samp>(2a8cb)</samp>](https://github.com/vitest-dev/vitest/commit/2a8cb9dc2)
- Stabilize experimental features &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9529 [<samp>(b5fd2)</samp>](https://github.com/vitest-dev/vitest/commit/b5fd2a16a)
- Accept `new` or `all` in `--update` flag &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9543 [<samp>(a5acf)</samp>](https://github.com/vitest-dev/vitest/commit/a5acf28a5)
- Support `meta` in test options &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9535 [<samp>(7d622)</samp>](https://github.com/vitest-dev/vitest/commit/7d622e3d1)
- Support type inference with a new `test.extend` syntax &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9550 [<samp>(e5385)</samp>](https://github.com/vitest-dev/vitest/commit/e53854fcc)
- Support vite 8 beta, fix type issues in the config with different vite versions &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9587 [<samp>(99028)</samp>](https://github.com/vitest-dev/vitest/commit/990281dfd)
- Add assertion helper to hide internal stack traces &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9594 [<samp>(eeb0a)</samp>](https://github.com/vitest-dev/vitest/commit/eeb0ae2f8)
- Store failure screenshots using artifacts API &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9588 [<samp>(24603)</samp>](https://github.com/vitest-dev/vitest/commit/24603e3c4)
- Allow `vitest list` to statically collect tests instead of running files to collect them &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9630 [<samp>(7a8e7)</samp>](https://github.com/vitest-dev/vitest/commit/7a8e7fc20)
- Add `--detect-async-leaks` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9528 [<samp>(c594d)</samp>](https://github.com/vitest-dev/vitest/commit/c594d4af3)
- Implement `mockThrow` and `mockThrowOnce` &nbsp;-&nbsp; by @thor-juhasz and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9512 [<samp>(61917)</samp>](https://github.com/vitest-dev/vitest/commit/619179fb7)
- Support `update: "none"` and add docs about snapshots behavior on CI &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9700 [<samp>(05f18)</samp>](https://github.com/vitest-dev/vitest/commit/05f1854e2)
- Support playwright `launchOptions` with `connectOptions` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9702 [<samp>(f0ff1)</samp>](https://github.com/vitest-dev/vitest/commit/f0ff1b2a0)
- Add `page/locator.mark` API to enhance playwright trace &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9652 [<samp>(d0ee5)</samp>](https://github.com/vitest-dev/vitest/commit/d0ee546fe)
- **api**:
  - Support tests starting or ending with `test` in `experimental_parseSpecification` &nbsp;-&nbsp; by @jgillick and **Jeremy Gillick** in https://github.com/vitest-dev/vitest/issues/9235 [<samp>(2f367)</samp>](https://github.com/vitest-dev/vitest/commit/2f367fad3)
  - Add filters to `createSpecification` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9336 [<samp>(c8e6c)</samp>](https://github.com/vitest-dev/vitest/commit/c8e6c7fbf)
  - Expose `runTestFiles` as alternative to `runTestSpecifications` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9443 [<samp>(43d76)</samp>](https://github.com/vitest-dev/vitest/commit/43d761821)
  - Add `allowWrite` and `allowExec` options to `api` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9350 [<samp>(20e00)</samp>](https://github.com/vitest-dev/vitest/commit/20e00ef78)
  - Allow passing down test cases to `toTestSpecification` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9627 [<samp>(6f17d)</samp>](https://github.com/vitest-dev/vitest/commit/6f17d5ddf)
- **browser**:
  - Add `userEvent.wheel` API &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9188 [<samp>(66080)</samp>](https://github.com/vitest-dev/vitest/commit/660801979)
  - Add `filterNode` option to prettyDOM for filtering browser assertion error output &nbsp;-&nbsp; by @Copilot, **sheremet-va** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9475 [<samp>(d3220)</samp>](https://github.com/vitest-dev/vitest/commit/d3220fcd8)
  - Support playwright persistent context &nbsp;-&nbsp; by @hi-ogawa, **Claude Opus 4.6** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9229 [<samp>(f865d)</samp>](https://github.com/vitest-dev/vitest/commit/f865d2ba4)
  - Added `detailsPanelPosition` option and button &nbsp;-&nbsp; by @shairez in https://github.com/vitest-dev/vitest/issues/9525 [<samp>(c8a31)</samp>](https://github.com/vitest-dev/vitest/commit/c8a31147c)
  - Use BlazeDiff instead of pixelmatch &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9514 [<samp>(30936)</samp>](https://github.com/vitest-dev/vitest/commit/309362089)
  - Add `findElement` and enable strict mode in webdriverio and preview &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9677 [<samp>(c3f37)</samp>](https://github.com/vitest-dev/vitest/commit/c3f37721c)
- **cli**:
  - Add @bomb.sh/tab completions &nbsp;-&nbsp; by @AmirSa12 and @sheremet-va in https://github.com/vitest-dev/vitest/issues/8639 [<samp>(200f3)</samp>](https://github.com/vitest-dev/vitest/commit/200f31704)
- **coverage**:
  - Support `ignore start/stop` ignore hints &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9204 [<samp>(e59c9)</samp>](https://github.com/vitest-dev/vitest/commit/e59c94ba6)
  - Add `coverage.changed` option to report only changed files &nbsp;-&nbsp; by @kykim00 and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9521 [<samp>(1d939)</samp>](https://github.com/vitest-dev/vitest/commit/1d9392c67)
- **experimental**:
  - Add `onModuleRunner` hook to `worker.init` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9286 [<samp>(e977f)</samp>](https://github.com/vitest-dev/vitest/commit/e977f3deb)
  - Option to disable the module runner &nbsp;-&nbsp; by @sheremet-va and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9210 [<samp>(9be61)</samp>](https://github.com/vitest-dev/vitest/commit/9be6121ee)
  - Add `importDurations: { limit, print }` options &nbsp;-&nbsp; by @hi-ogawa, **Claude Opus 4.6** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9401 [<samp>(7e10f)</samp>](https://github.com/vitest-dev/vitest/commit/7e10fb356)
  - Add print and fail thresholds for `importDurations` &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9533 [<samp>(3f7a5)</samp>](https://github.com/vitest-dev/vitest/commit/3f7a5f8f8)
- **fixtures**:
  - Pass down file context to `beforeAll`/`afterAll` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9572 [<samp>(c8339)</samp>](https://github.com/vitest-dev/vitest/commit/c83395f2c)
- **reporters**:
  - Add `agent` reporter to reduce ai agent token usage &nbsp;-&nbsp; by @cpojer in https://github.com/vitest-dev/vitest/issues/9779 [<samp>(3e9e0)</samp>](https://github.com/vitest-dev/vitest/commit/3e9e096a2)
- **runner**:
  - Enhance `retry` options &nbsp;-&nbsp; by @MazenSamehR, **Matan Shavit**, @AriPerkkio and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9370 [<samp>(9e4cf)</samp>](https://github.com/vitest-dev/vitest/commit/9e4cfd295)
- **ui**:
  - Allow run individual test/suites &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/9465 [<samp>(73b10)</samp>](https://github.com/vitest-dev/vitest/commit/73b10f1b9)
  - Add project filter/sort support &nbsp;-&nbsp; by @userquin in https://github.com/vitest-dev/vitest/issues/8689 [<samp>(0c7ea)</samp>](https://github.com/vitest-dev/vitest/commit/0c7eaac16)
  - Add duration sorting to explorer &nbsp;-&nbsp; by @julianhahn and @cursoragent in https://github.com/vitest-dev/vitest/issues/9603 [<samp>(209b1)</samp>](https://github.com/vitest-dev/vitest/commit/209b1b0e1)
  - Implement filter for slow tests &nbsp;-&nbsp; by @DerYeger and @userquin in https://github.com/vitest-dev/vitest/issues/9705 [<samp>(8880c)</samp>](https://github.com/vitest-dev/vitest/commit/8880c907a)
- **vitest**:
  - Add run summary in GitHub Actions Reporter &nbsp;-&nbsp; by @macarie and **jhnance** in https://github.com/vitest-dev/vitest/issues/9579 [<samp>(96bfc)</samp>](https://github.com/vitest-dev/vitest/commit/96bfc8345)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Deprecate several vitest/* entry points &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9347 [<samp>(fd459)</samp>](https://github.com/vitest-dev/vitest/commit/fd45928be)
- Use `meta.url` in `createRequire` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9441 [<samp>(e3422)</samp>](https://github.com/vitest-dev/vitest/commit/e34225563)
- Preact browser mode init example of render function not async &nbsp;-&nbsp; by @WuMingDao in https://github.com/vitest-dev/vitest/issues/9375 [<samp>(2bea5)</samp>](https://github.com/vitest-dev/vitest/commit/2bea549c7)
- Deprecate unused types in matcher context &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9449 [<samp>(20f87)</samp>](https://github.com/vitest-dev/vitest/commit/20f8753a2)
- Handle `external/noExternal` during `configEnvironment` hook &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9508 [<samp>(59ea2)</samp>](https://github.com/vitest-dev/vitest/commit/59ea27c1c)
- Replace default ssr environment runner with Vitest server module runner &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9506 [<samp>(cd5db)</samp>](https://github.com/vitest-dev/vitest/commit/cd5db660c)
- Propagate experimental CLI options to child projects &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9531 [<samp>(b624f)</samp>](https://github.com/vitest-dev/vitest/commit/b624fae53)
- Show a warning when `browser.isolate` is used &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9410 [<samp>(3d48e)</samp>](https://github.com/vitest-dev/vitest/commit/3d48ebcb9)
- Fix `vi.mock({ spy: true })` node v8 coverage &nbsp;-&nbsp; by @hi-ogawa, **hi-ogawa** and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9541 [<samp>(687b6)</samp>](https://github.com/vitest-dev/vitest/commit/687b633c1)
- Don't show internal ssr handler in errors &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9547 [<samp>(76c43)</samp>](https://github.com/vitest-dev/vitest/commit/76c4397b5)
- Close vitest if it failed to start &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9573 [<samp>(728ba)</samp>](https://github.com/vitest-dev/vitest/commit/728ba617f)
- Fix ssr environment runner in project &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9584 [<samp>(09006)</samp>](https://github.com/vitest-dev/vitest/commit/090064f97)
- Trim trailing white spaces in code block &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9591 [<samp>(f78be)</samp>](https://github.com/vitest-dev/vitest/commit/f78bea992)
- Support inline snapshot inside test.for/each &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9590 [<samp>(615fd)</samp>](https://github.com/vitest-dev/vitest/commit/615fd521e)
- Apply source maps for external module stack trace &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9152 [<samp>(79e20)</samp>](https://github.com/vitest-dev/vitest/commit/79e20d5a3)
- Remove the `.name` from statically collected test &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9596 [<samp>(b66ff)</samp>](https://github.com/vitest-dev/vitest/commit/b66ff691a)
- Don't suppress warnings on pnp &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9602 [<samp>(89cbd)</samp>](https://github.com/vitest-dev/vitest/commit/89cbdaea3)
- Support snapshot with `expect.soft` &nbsp;-&nbsp; by @iumehara, @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9231 [<samp>(3eb2c)</samp>](https://github.com/vitest-dev/vitest/commit/3eb2cd541)
- Log seed when only `sequence.shuffle.tests` is enabled &nbsp;-&nbsp; by @kaigritun, **Kai Gritun** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9576 [<samp>(8182b)</samp>](https://github.com/vitest-dev/vitest/commit/8182b77ad)
- Externalize `expect/src/utils` from `vitest` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9616 [<samp>(48739)</samp>](https://github.com/vitest-dev/vitest/commit/487398422)
- Ignore test.override during static collection &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9620 [<samp>(09174)</samp>](https://github.com/vitest-dev/vitest/commit/0917470ce)
- Increase stacktrace limit for `--detect-async-leaks` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9638 [<samp>(9fd4c)</samp>](https://github.com/vitest-dev/vitest/commit/9fd4ce533)
- Hanging-reporter link in cli &nbsp;-&nbsp; by @flx-sta in https://github.com/vitest-dev/vitest/issues/9649 [<samp>(7c103)</samp>](https://github.com/vitest-dev/vitest/commit/7c103055c)
- Fix teardown timeout of `aroundEach/All` when inner `aroundEach/All` throws &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9657 [<samp>(4ec6c)</samp>](https://github.com/vitest-dev/vitest/commit/4ec6cb305)
- Fix ui mode / html reporter and coverage integration &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9626 [<samp>(86fad)</samp>](https://github.com/vitest-dev/vitest/commit/86fad4b42)
- Don't continue when `aroundEach/All` setup timed out &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9670 [<samp>(bb013)</samp>](https://github.com/vitest-dev/vitest/commit/bb013d54b)
- Align `VitestRunnerConfig` optional fields with `SerializedConfig` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9661 [<samp>(79520)</samp>](https://github.com/vitest-dev/vitest/commit/79520d82d)
- Handle Symbol values in format utility &nbsp;-&nbsp; by @nami8824 in https://github.com/vitest-dev/vitest/issues/9658 [<samp>(0583f)</samp>](https://github.com/vitest-dev/vitest/commit/0583f067e)
- Deprecate `toBe*` spy assertions in favor of `toHaveBeen*` (and `toThrowError`) &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9665 [<samp>(4d390)</samp>](https://github.com/vitest-dev/vitest/commit/4d390dfe9)
- Don't propagate nested `aroundEach/All` errors but aggregate them on runner &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9673 [<samp>(b6365)</samp>](https://github.com/vitest-dev/vitest/commit/b63653f5a)
- Show a better error if there is a pending dynamic import &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9676 [<samp>(7ef5c)</samp>](https://github.com/vitest-dev/vitest/commit/7ef5cf4b7)
- Preserve stack trace of `resolves/rejects` chained assertion error &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9679 [<samp>(c6151)</samp>](https://github.com/vitest-dev/vitest/commit/c61511d4a)
- Handle module-sync condition in vmThreads/vmForks require &nbsp;-&nbsp; by @lesleh in https://github.com/vitest-dev/vitest/issues/9650 and https://github.com/vitest-dev/vitest/issues/9651 [<samp>(bb203)</samp>](https://github.com/vitest-dev/vitest/commit/bb20389f4)
- Hooks should respect `maxConcurrency` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9653 [<samp>(16d13)</samp>](https://github.com/vitest-dev/vitest/commit/16d13d981)
- Recursively autospy module object &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9687 [<samp>(695a8)</samp>](https://github.com/vitest-dev/vitest/commit/695a86b41)
- Remove trailing spaces from diff error log &nbsp;-&nbsp; by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9680 [<samp>(395d1)</samp>](https://github.com/vitest-dev/vitest/commit/395d1a29e)
- Respect project `resolve.conditions` for externals &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9717 [<samp>(1d498)</samp>](https://github.com/vitest-dev/vitest/commit/1d4987498)
- Use object for WeakMap instead of a symbol to support webcontainers &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9731 [<samp>(c5225)</samp>](https://github.com/vitest-dev/vitest/commit/c52259330)
- Fix re-mocking virtual module &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9748 [<samp>(3cbbb)</samp>](https://github.com/vitest-dev/vitest/commit/3cbbb17f1)
- Cancelling should stop current test immediately &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9729 [<samp>(0cb2f)</samp>](https://github.com/vitest-dev/vitest/commit/0cb2f7239)
- Make `mockObject` change backwards compatible &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9744 [<samp>(84c69)</samp>](https://github.com/vitest-dev/vitest/commit/84c69497f)
- Fix `URL.name` on jsdom &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9767 [<samp>(031f3)</samp>](https://github.com/vitest-dev/vitest/commit/031f3a374)
- Save and restore module graph in blob reporter &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9740 [<samp>(84355)</samp>](https://github.com/vitest-dev/vitest/commit/843554bf0)
- Don't silence reporter errors from test runtime events handler in normal run and --merge-reports &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9727 [<samp>(4072d)</samp>](https://github.com/vitest-dev/vitest/commit/4072d0132)
- Fix `vi.importActual()` for virtual modules &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9772 [<samp>(1e89e)</samp>](https://github.com/vitest-dev/vitest/commit/1e89ec020)
- Throw `FixtureAccessError` if suite hook accesses undefined fixture &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9786 [<samp>(fc2ce)</samp>](https://github.com/vitest-dev/vitest/commit/fc2cea2b7)
- Allow hyphens in project config file name pattern &nbsp;-&nbsp; by @Koutaro-Hanabusa and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9760 [<samp>(33e96)</samp>](https://github.com/vitest-dev/vitest/commit/33e96311a)
- Manual and redirect mock shouldn't `load` or `transform` original module &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9774 [<samp>(a8216)</samp>](https://github.com/vitest-dev/vitest/commit/a8216b001)
- `hideSkippedTests` should not hide `test.todo` &nbsp;-&nbsp; by @oilater in https://github.com/vitest-dev/vitest/issues/9562 and https://github.com/vitest-dev/vitest/issues/9781 [<samp>(8181e)</samp>](https://github.com/vitest-dev/vitest/commit/8181e06e7)
- Allow catch/finally for async assertion &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9827 [<samp>(031f0)</samp>](https://github.com/vitest-dev/vitest/commit/031f02a89)
- Resolve fixture overrides from test's suite in `beforeEach` hooks &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9826 [<samp>(99e52)</samp>](https://github.com/vitest-dev/vitest/commit/99e52fe58)
- Use isAgent check, not just TTY, for watch mode &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9841 [<samp>(c3cac)</samp>](https://github.com/vitest-dev/vitest/commit/c3cac1c1b)
- Use `performance.now` to measure test timeout duration &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9795 [<samp>(f48a6)</samp>](https://github.com/vitest-dev/vitest/commit/f48a60114)
- Correctly identify concurrent test during static analysis &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9846 [<samp>(1de0a)</samp>](https://github.com/vitest-dev/vitest/commit/1de0aa22d)
- **browser**:
  - Avoid updating screenshots when `toMatchScreenshot` passes &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9289 [<samp>(46aab)</samp>](https://github.com/vitest-dev/vitest/commit/46aabaa44)
  - Hide injected data-testid attributes &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9503 [<samp>(c8d2c)</samp>](https://github.com/vitest-dev/vitest/commit/c8d2c411c)
  - Throw an error if iframe was reloaded &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9516 [<samp>(73a81)</samp>](https://github.com/vitest-dev/vitest/commit/73a81f880)
  - Encode projectName in browser client URL &nbsp;-&nbsp; by @dkkim0122 in https://github.com/vitest-dev/vitest/issues/9523 [<samp>(5b164)</samp>](https://github.com/vitest-dev/vitest/commit/5b16483c3)
  - Don't take failure screenshot if tests have artifacts created by `toMatchScreenshot` &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9552 [<samp>(83ca0)</samp>](https://github.com/vitest-dev/vitest/commit/83ca02547)
  - Remove `--remote-debugging-address` from chrome args &nbsp;-&nbsp; by @hi-ogawa and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9712 [<samp>(f09bb)</samp>](https://github.com/vitest-dev/vitest/commit/f09bb5c32)
  - Make sure userEvent actions support `ensureAwaited` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9732 [<samp>(97685)</samp>](https://github.com/vitest-dev/vitest/commit/9768517b8)
  - Types of `getCDPSession` and `cdp()` &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9716 [<samp>(689a2)</samp>](https://github.com/vitest-dev/vitest/commit/689a22a1b)
  - Skip esbuild.legalComments when using rolldown-vite &nbsp;-&nbsp; by @Copilot, **hi-ogawa** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9803 [<samp>(3505f)</samp>](https://github.com/vitest-dev/vitest/commit/3505fa5a3)
- **chai**:
  - Don't allow `deepEqual` in the config because it's not serializable &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9666 [<samp>(9ee99)</samp>](https://github.com/vitest-dev/vitest/commit/9ee999d73)
- **coverage**:
  - Infer transform mode for uncovered files &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9435 [<samp>(f3967)</samp>](https://github.com/vitest-dev/vitest/commit/f396792d6)
  - `thresholds.autoUpdate` to preserve ending whitespace &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9436 [<samp>(7e534)</samp>](https://github.com/vitest-dev/vitest/commit/7e534a0b6)
- **deps**:
  - Update all non-major dependencies &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9192 [<samp>(90c30)</samp>](https://github.com/vitest-dev/vitest/commit/90c302f3b)
  - Update all non-major dependencies &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/9485 [<samp>(c0118)</samp>](https://github.com/vitest-dev/vitest/commit/c01186022)
  - Update all non-major dependencies &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/9567 [<samp>(13c9e)</samp>](https://github.com/vitest-dev/vitest/commit/13c9e022b)
- **docs**:
  - Fix old `/config/#option` hash links causing hydration errors &nbsp;-&nbsp; by @hi-ogawa, **Claude Opus 4.6** and @sheremet-va in https://github.com/vitest-dev/vitest/issues/9610 [<samp>(a603c)</samp>](https://github.com/vitest-dev/vitest/commit/a603c3a30)
- **expect**:
  - `toMatchObject(Map/Set)` should expect `Map/Set` on left hand side &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9532 [<samp>(381da)</samp>](https://github.com/vitest-dev/vitest/commit/381da4a9d)
  - Fix objectContaining with proxy &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9554 [<samp>(7ce34)</samp>](https://github.com/vitest-dev/vitest/commit/7ce3417b1)
  - Support arbitrary value equality for `toThrow` and make Error detection robust &nbsp;-&nbsp; by @hi-ogawa and **Claude Opus 4.6** in https://github.com/vitest-dev/vitest/issues/9570 [<samp>(de215)</samp>](https://github.com/vitest-dev/vitest/commit/de215c19c)
- **mock**:
  - Inject helpers after hashbang if present &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9545 [<samp>(65432)</samp>](https://github.com/vitest-dev/vitest/commit/65432a74b)
- **mocker**:
  - Update vite's peer dependency range &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9808 [<samp>(36f9a)</samp>](https://github.com/vitest-dev/vitest/commit/36f9a81a2)
- **reporter**:
  - `dot` reporter leaves pending tests &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9684 [<samp>(4d793)</samp>](https://github.com/vitest-dev/vitest/commit/4d7938a56)
- **runner**:
  - Mark repeated tests as finished on last run &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9707 [<samp>(cc735)</samp>](https://github.com/vitest-dev/vitest/commit/cc735970a)
- **spy**:
  - Support deep partial in vi.mocked &nbsp;-&nbsp; by @j2h30728 in https://github.com/vitest-dev/vitest/issues/8152 and https://github.com/vitest-dev/vitest/issues/9493 [<samp>(71cb5)</samp>](https://github.com/vitest-dev/vitest/commit/71cb51ffc)
  - Fallback to object accessor if descriptor's value is `undefined` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9511 [<samp>(6f181)</samp>](https://github.com/vitest-dev/vitest/commit/6f18103fa)
  - Throw correct errors when shorthand methods are used on a class &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9513 [<samp>(5d0fd)</samp>](https://github.com/vitest-dev/vitest/commit/5d0fd3b62)
- **types**:
  - `bench.reporters` no longer gives type errors when passing file name string paths &nbsp;-&nbsp; by @Bertie690 in https://github.com/vitest-dev/vitest/issues/9695 [<samp>(093c8)</samp>](https://github.com/vitest-dev/vitest/commit/093c8f6b5)
- **ui**:
  - Process artifact attachments when generating HTML reporter &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9472 [<samp>(96eb9)</samp>](https://github.com/vitest-dev/vitest/commit/96eb92826)
  - Don't fail if --ui and --root are specified together &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9536 [<samp>(d9305)</samp>](https://github.com/vitest-dev/vitest/commit/d93055fc7)

### &nbsp;&nbsp;&nbsp;🏎 Performance

- **pretty-format**: Combine DOMElement plugins &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9581 [<samp>(da85a)</samp>](https://github.com/vitest-dev/vitest/commit/da85a3267)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.17...v4.1.0)
</Release>

<Release version="v4.0.18" date="January 22, 2026" published="2026-01-22T17:51:01.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.18">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **experimental**: Add `onModuleRunner` hook to `worker.init` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9286 [<samp>(ea837)</samp>](https://github.com/vitest-dev/vitest/commit/ea837de7d)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Use `meta.url` in `createRequire` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9441 [<samp>(e0572)</samp>](https://github.com/vitest-dev/vitest/commit/e057281ca)
- **browser**: Hide injected data-testid attributes &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9503 [<samp>(f8989)</samp>](https://github.com/vitest-dev/vitest/commit/f89899cd8)
- **ui**: Process artifact attachments when generating HTML reporter &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9472 [<samp>(22543)</samp>](https://github.com/vitest-dev/vitest/commit/225435647)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.17...v4.0.18)
</Release>

<Release version="v4.0.17" date="January 12, 2026" published="2026-01-12T11:59:13.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.17">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- Support openTelemetry for browser mode &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9180 [<samp>(1ec3a)</samp>](https://github.com/vitest-dev/vitest/commit/1ec3a8b68)
- Support TRACEPARENT and TRACESTATE environment variables for OpenTelemetry context propagation &nbsp;-&nbsp; by @Copilot, **hi-ogawa** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9295 [<samp>(876cb)</samp>](https://github.com/vitest-dev/vitest/commit/876cb84c2)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Improve asymmetric matcher diff readability by unwrapping container matchers &nbsp;-&nbsp; by @Copilot, **sheremet-va**, **hi-ogawa** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9330 [<samp>(b2ec7)</samp>](https://github.com/vitest-dev/vitest/commit/b2ec724a8)
- Improve runner error when importing outside of test context &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9335 [<samp>(2dd3d)</samp>](https://github.com/vitest-dev/vitest/commit/2dd3dd839)
- Replace crypto.randomUUID to allow insecure environments (fix #9… &nbsp;-&nbsp; by @plusgut in https://github.com/vitest-dev/vitest/issues/9339 and https://github.com/vitest-dev/vitest/issues/9 [<samp>(e6a3f)</samp>](https://github.com/vitest-dev/vitest/commit/e6a3f8cc7)
- Handle null options in `addEventHandler` #9371 &nbsp;-&nbsp; by @ThibautMarechal in https://github.com/vitest-dev/vitest/issues/9372 and https://github.com/vitest-dev/vitest/issues/9371 [<samp>(40841)</samp>](https://github.com/vitest-dev/vitest/commit/40841ff00)
- Typo in browser.provider error &nbsp;-&nbsp; by @deammer in https://github.com/vitest-dev/vitest/issues/9394 [<samp>(4b67f)</samp>](https://github.com/vitest-dev/vitest/commit/4b67fc25a)
- **browser**:
  - Fix `process.env` and `import.meta.env` defines in inline project &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9239 [<samp>(b70c9)</samp>](https://github.com/vitest-dev/vitest/commit/b70c96121)
  - Fix upload File instance &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9294 [<samp>(b6778)</samp>](https://github.com/vitest-dev/vitest/commit/b67788c69)
  - Fix invalid project token for artifacts assets &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9321 [<samp>(caa7d)</samp>](https://github.com/vitest-dev/vitest/commit/caa7d73d4)
  - Log `ErrorEvent.message` when unhandled `ErrorEvent.error` is null &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9322 [<samp>(5d84e)</samp>](https://github.com/vitest-dev/vitest/commit/5d84eeb91)
  - Support `fileParallelism` on an instance &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9328 [<samp>(15006)</samp>](https://github.com/vitest-dev/vitest/commit/150065459)
- **coverage**:
  - Remove unnecessary `istanbul-lib-source-maps` usage &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9344 [<samp>(b0940)</samp>](https://github.com/vitest-dev/vitest/commit/b09405375)
  - Apply patch from istanbuljs/istanbuljs#837 &nbsp;-&nbsp; by @AriPerkkio and **sapphi-red** in https://github.com/vitest-dev/vitest/issues/9413 and https://github.com/vitest-dev/vitest/issues/837 [<samp>(e05ce)</samp>](https://github.com/vitest-dev/vitest/commit/e05cedbf4)
- **fsModuleCache**:
  - Don't store importers in cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9422 [<samp>(75136)</samp>](https://github.com/vitest-dev/vitest/commit/751364eec)
  - Add importers alongside importedModules &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9423 [<samp>(59f92)</samp>](https://github.com/vitest-dev/vitest/commit/59f92d403)
- **mocker**:
  - Fix mock transform with class &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9421 [<samp>(d390e)</samp>](https://github.com/vitest-dev/vitest/commit/d390eb527)
- **pool**:
  - Validate environment options when reusing the worker &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9349 [<samp>(a8a88)</samp>](https://github.com/vitest-dev/vitest/commit/a8a8836e3)
  - Handle worker start failures gracefully &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9337 [<samp>(200da)</samp>](https://github.com/vitest-dev/vitest/commit/200dadb32)
- **reporter**:
  - Report test module if it failed to run &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9272 [<samp>(c7888)</samp>](https://github.com/vitest-dev/vitest/commit/c78882985)
- **runner**:
  - Respect nested test.only within describe.only &nbsp;-&nbsp; by @Ujjwaljain16 in https://github.com/vitest-dev/vitest/issues/9021 and https://github.com/vitest-dev/vitest/issues/9213 [<samp>(55d5d)</samp>](https://github.com/vitest-dev/vitest/commit/55d5dad69)
- **typecheck**:
  - Improve error message when tsc outputs help text &nbsp;-&nbsp; by @Ujjwaljain16 in https://github.com/vitest-dev/vitest/issues/9214 [<samp>(7b10a)</samp>](https://github.com/vitest-dev/vitest/commit/7b10ab4cd)
- **ui**:
  - Detect gzip by magic numbers instead of Content-Type header in html reporter &nbsp;-&nbsp; by @Copilot, **hi-ogawa** and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9278 [<samp>(dd033)</samp>](https://github.com/vitest-dev/vitest/commit/dd0331632)
- **webdriverio**:
  - Fall back to WebDriver Classic #9244 &nbsp;-&nbsp; by @JustasMonkev in https://github.com/vitest-dev/vitest/issues/9373 and https://github.com/vitest-dev/vitest/issues/9244 [<samp>(c23dd)</samp>](https://github.com/vitest-dev/vitest/commit/c23dd11bd)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.16...v4.0.17)
</Release>

<Release version="v4.0.16" date="December 16, 2025" published="2025-12-16T15:09:17.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.16">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Fix browser mode default testTimeout back to 15 seconds &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9167 [<samp>(da0ad)</samp>](https://github.com/vitest-dev/vitest/commit/da0ade249)
- Avoid crashing on `process.versions` stub &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9174 [<samp>(78cfb)</samp>](https://github.com/vitest-dev/vitest/commit/78cfbf99a)
- Reject calling suite function inside test &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9198 [<samp>(1a259)</samp>](https://github.com/vitest-dev/vitest/commit/1a259c340)
- Allow inlining fully dynamic import &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9137 [<samp>(56851)</samp>](https://github.com/vitest-dev/vitest/commit/568513ca6)
- Fix module graph UI on html reporter with headless browser mode &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9219 [<samp>(60642)</samp>](https://github.com/vitest-dev/vitest/commit/60642b304)
- Log deprecated `test.poolOptions` if it's set &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9226 [<samp>(f7f6a)</samp>](https://github.com/vitest-dev/vitest/commit/f7f6aa8ba)
- **browser**:
  - Import `recordArtifact` from the vitest package &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9186 [<samp>(01c56)</samp>](https://github.com/vitest-dev/vitest/commit/01c56454d)
  - Fix `import.meta.env` define &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9205 [<samp>(01a9a)</samp>](https://github.com/vitest-dev/vitest/commit/01a9a58d9)
  - String formatting bug when including placeholders in console.log &nbsp;-&nbsp; by @michael-debs and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9030 and https://github.com/vitest-dev/vitest/issues/9131 [<samp>(84a30)</samp>](https://github.com/vitest-dev/vitest/commit/84a306210)
- **coverage**:
  - Istanbul untested files source maps are off &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9208 [<samp>(372e8)</samp>](https://github.com/vitest-dev/vitest/commit/372e86fde)
- **experimental**:
  - Export `setupEnvironment` for custom pools &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9187 [<samp>(5d26b)</samp>](https://github.com/vitest-dev/vitest/commit/5d26b87b0)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.15...v4.0.16)
</Release>

<Release version="v4.0.15" date="December 2, 2025" published="2025-12-02T15:53:06.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.15">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **cache**: Add opt-out on a plugin level, fix internal root cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9154 [<samp>(a68f7)</samp>](https://github.com/vitest-dev/vitest/commit/a68f74e5e)
- **reporters**: Print import duration breakdown &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9105 [<samp>(122ff)</samp>](https://github.com/vitest-dev/vitest/commit/122ff321c)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Keep built-in id as is in bun and deno &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9117 [<samp>(075ab)</samp>](https://github.com/vitest-dev/vitest/commit/075ab3520)
- Use `optimizeDeps.rolldownOptions` to fix depreated warning + fix `ssr.external: true` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9121 [<samp>(fd8bd)</samp>](https://github.com/vitest-dev/vitest/commit/fd8bd6dee)
- Fix external behavior with `deps.optimizer` &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9125 [<samp>(4c754)</samp>](https://github.com/vitest-dev/vitest/commit/4c75492cc)
- Very minor typo in "Chrome DevTools Protocol" &nbsp;-&nbsp; by @HowToTestFrontend in https://github.com/vitest-dev/vitest/issues/9146 [<samp>(20997)</samp>](https://github.com/vitest-dev/vitest/commit/209976419)
- **browser**: Run `toMatchScreenshot` only once when used with `expect.element` &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9132 [<samp>(0d2e7)</samp>](https://github.com/vitest-dev/vitest/commit/0d2e7e3e2)
- **coverage**: Istanbul provider to not break source maps &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9040 [<samp>(e4ca9)</samp>](https://github.com/vitest-dev/vitest/commit/e4ca917f1)
- **deps**: Update dependency tinyexec to v1 &nbsp;-&nbsp; in https://github.com/vitest-dev/vitest/issues/9122 [<samp>(fd786)</samp>](https://github.com/vitest-dev/vitest/commit/fd7860222)
- **docs**: Remove `--browser.provider` from docs &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9115 [<samp>(120b3)</samp>](https://github.com/vitest-dev/vitest/commit/120b3dac1)
- **expect**: Preserve `currentTestName` in extended matchers &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9106 [<samp>(e4345)</samp>](https://github.com/vitest-dev/vitest/commit/e43458e02)
- **pool**: Terminate workers on `CTRL+c` forceful exits &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9140 [<samp>(d57d8)</samp>](https://github.com/vitest-dev/vitest/commit/d57d8bf0a)
- **reporters**: Show project in github reporter &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9138 [<samp>(bb65e)</samp>](https://github.com/vitest-dev/vitest/commit/bb65e15c7)
- **spy**: Do not mock overriden method, if parent was automocked &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9116 [<samp>(1a246)</samp>](https://github.com/vitest-dev/vitest/commit/1a24607b4)
- **web-worker**: MessagePort objects passed to Worker.postMessage work when clone === "native" &nbsp;-&nbsp; by @whitphx in https://github.com/vitest-dev/vitest/issues/9118 [<samp>(deee8)</samp>](https://github.com/vitest-dev/vitest/commit/deee83e54)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.14...v4.0.15)
</Release>

<Release version="v4.0.14" date="November 25, 2025" published="2025-11-25T13:55:04.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.14">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **browser**: Expose `utils.configurePrettyDOM` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9103 [<samp>(2cc34)</samp>](https://github.com/vitest-dev/vitest/commit/2cc34e0d4)
- **runner**: Add full names to tasks &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9087 [<samp>(821aa)</samp>](https://github.com/vitest-dev/vitest/commit/821aa2002)
- **ui**: Add tabbed failure view for `toMatchScreenshot` with comparison slider &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/8813 [<samp>(c37c2)</samp>](https://github.com/vitest-dev/vitest/commit/c37c2eb0b)

### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Externalize before caching &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9077 [<samp>(e1b2e)</samp>](https://github.com/vitest-dev/vitest/commit/e1b2e086a)
- Collect the duration of external imports &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9097 [<samp>(3326c)</samp>](https://github.com/vitest-dev/vitest/commit/3326cc9f4)
- Rename `collect` to `import`, remove `prepare` &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9091 [<samp>(1256b)</samp>](https://github.com/vitest-dev/vitest/commit/1256b5ca3)
- **browser**:
  - Unsubscribe `onCancel` on rpc destroy &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9088 [<samp>(f5b72)</samp>](https://github.com/vitest-dev/vitest/commit/f5b72374b)
  - Revert the viewport scaling in non-ui mode #9018 &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9072 and https://github.com/vitest-dev/vitest/issues/9018 [<samp>(64502)</samp>](https://github.com/vitest-dev/vitest/commit/64502a2c4)
- **coverage**:
  - Invalidate circular modules correctly on rerun with coverage &nbsp;-&nbsp; by @aicest in https://github.com/vitest-dev/vitest/issues/9096 [<samp>(6f22c)</samp>](https://github.com/vitest-dev/vitest/commit/6f22c675f)
- **expect**:
  - Allow function as standard schema &nbsp;-&nbsp; by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/9099 [<samp>(ed8a2)</samp>](https://github.com/vitest-dev/vitest/commit/ed8a2ebbd)
- **jsdom**:
  - Reuse abort signals if possible &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9090 [<samp>(2c468)</samp>](https://github.com/vitest-dev/vitest/commit/2c468ee95)
- **pool**:
  - Init `VITEST_POOL_ID` + `VITEST_WORKER_ID` before environment setup &nbsp;-&nbsp; by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9085 [<samp>(37918)</samp>](https://github.com/vitest-dev/vitest/commit/379185b40)
- **web-worker**:
  - `postMessage` to send ports to workers &nbsp;-&nbsp; by @whitphx and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9078 [<samp>(9d176)</samp>](https://github.com/vitest-dev/vitest/commit/9d1763d11)

### &nbsp;&nbsp;&nbsp;🏎 Performance

- Replace `debug` with `obug` &nbsp;-&nbsp; by @sxzz and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/9057 [<samp>(acc51)</samp>](https://github.com/vitest-dev/vitest/commit/acc5152b9)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.13...v4.0.14)
</Release>

<Release version="v4.0.13" date="November 21, 2025" published="2025-11-21T16:32:49.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.13">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- **types**:
  - Don't use type from Vite 7.1 &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9071 [<samp>(6356b)</samp>](https://github.com/vitest-dev/vitest/commit/6356b1d38)
  - Don't import node.js dependent types in vitest/browser &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9068 [<samp>(332af)</samp>](https://github.com/vitest-dev/vitest/commit/332afa0de)

### &nbsp;&nbsp;&nbsp;🏎 Performance

- Avoid fetchModule roundtrip if the module is cached &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9075 [<samp>(b27e0)</samp>](https://github.com/vitest-dev/vitest/commit/b27e002e5)
- **experimental**: If `fsCacheModule` is enabled, read from the memory when possible &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9076 [<samp>(6b9a1)</samp>](https://github.com/vitest-dev/vitest/commit/6b9a1b5b1)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.12...v4.0.13)
</Release>

<Release version="v4.0.12" date="November 20, 2025" published="2025-11-20T12:00:15.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.12">
### &nbsp;&nbsp;&nbsp;🐞 Bug Fixes

- Inherit `fsModuleCachePath` by default &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9063 [<samp>(9a8bc)</samp>](https://github.com/vitest-dev/vitest/commit/9a8bc78c5)
- Don't import from `@opentelemetry/api` in public types &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9066 [<samp>(e944a)</samp>](https://github.com/vitest-dev/vitest/commit/e944a37b7)

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.11...v4.0.12)
</Release>

<Release version="v4.0.11" date="November 20, 2025" published="2025-11-20T10:32:51.000Z" url="https://github.com/vitest-dev/vitest/releases/tag/v4.0.11">
### &nbsp;&nbsp;&nbsp;🚀 Experimental Features

- **api**: Add extensible test artifact API &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/8987 [<samp>(77292)</samp>](https://github.com/vitest-dev/vitest/commit/772923645)
  - See more at https://vitest.dev/api/advanced/artifacts
- **expect**: Provide `task` in `MatchState` &nbsp;-&nbsp; by @macarie in https://github.com/vitest-dev/vitest/issues/9022 [<samp>(afd1f)</samp>](https://github.com/vitest-dev/vitest/commit/afd1f3e52)
- **experimental**: Support OpenTelemetry traces &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/8994 [<samp>(d6d33)</samp>](https://github.com/vitest-dev/vitest/commit/d6d3359dd)
  - See more at https://vitest.dev/guide/open-telemetry

### &nbsp;&nbsp;&nbsp;🏎 Performance

- **experimental**: Add file system cache &nbsp;-&nbsp; by @sheremet-va in https://github.com/vitest-dev/vitest/issues/9026 [<samp>(1b147)</samp>](https://github.com/vitest-dev/vitest/commit/1b1473712)
  - See more at https://vitest.dev/config/experimental#experimental-fsmodulecache

##### &nbsp;&nbsp;&nbsp;&nbsp;[View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v4.0.10...v4.0.11)
</Release>

<Pagination cursor="2025-11-20T10:32:51.000Z|2026-06-01T18:10:45.615Z|rel_06PWxX60Lrm6fsHoSfd-a" next="https://releases.sh/vitest/vitest.md?cursor=2025-11-20T10%3A32%3A51.000Z%7C2026-06-01T18%3A10%3A45.615Z%7Crel_06PWxX60Lrm6fsHoSfd-a&limit=20" />
