⚠️ This can degrade performance if you have a custom maxWorkers setting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [vitest](https://vitest.dev) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`5.0.0` → `5.0.5`](https://renovatebot.com/diffs/npm/vitest/5.0.0/5.0.5) |  |  |
---
### Release Notes
<details>
<summary>vitest-dev/vitest (vitest)</summary>
### [`v5.0.5`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.5)
[Compare Source](https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5)
##### 🐞 Bug Fixes
- Keep vite default `fs.deny` with api token file - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11578](https://github.com/vitest-dev/vitest/issues/11578) [<samp>(28dc1)</samp>](https://github.com/vitest-dev/vitest/commit/28dc1edfb)
- Handle quoted file names in `--changed` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11583](https://github.com/vitest-dev/vitest/issues/11583) [<samp>(14921)</samp>](https://github.com/vitest-dev/vitest/commit/14921e962)
- Add `data` to the `import.meta.hot` stub - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11590](https://github.com/vitest-dev/vitest/issues/11590) [<samp>(3a828)</samp>](https://github.com/vitest-dev/vitest/commit/3a8289ac3)
- Set `skip` in `skipIf`, ignore `undefined` options - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11591](https://github.com/vitest-dev/vitest/issues/11591) [<samp>(d523a)</samp>](https://github.com/vitest-dev/vitest/commit/d523a15f2)
- Skip builtin loading in async leak detector - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11598](https://github.com/vitest-dev/vitest/issues/11598) [<samp>(fe86a)</samp>](https://github.com/vitest-dev/vitest/commit/fe86a64c6)
- Keep the import frame in native loader errors - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11599](https://github.com/vitest-dev/vitest/issues/11599) [<samp>(9697b)</samp>](https://github.com/vitest-dev/vitest/commit/9697b3894)
- Run hook cleanups when a later hook fails - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11605](https://github.com/vitest-dev/vitest/issues/11605) [<samp>(6c5a4)</samp>](https://github.com/vitest-dev/vitest/commit/6c5a44720)
- Release mocks of finished test files - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11607](https://github.com/vitest-dev/vitest/issues/11607) [<samp>(e9c3d)</samp>](https://github.com/vitest-dev/vitest/commit/e9c3d72f0)
- Abort all running tests on cancel - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11606](https://github.com/vitest-dev/vitest/issues/11606) [<samp>(6621a)</samp>](https://github.com/vitest-dev/vitest/commit/6621a72d6)
- **browser**:
- Ignore synthetic pagehide events - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11582](https://github.com/vitest-dev/vitest/issues/11582) [<samp>(ca081)</samp>](https://github.com/vitest-dev/vitest/commit/ca0813584)
- Run plugin buildStart on server creation - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11593](https://github.com/vitest-dev/vitest/issues/11593) [<samp>(ea611)</samp>](https://github.com/vitest-dev/vitest/commit/ea611e44c)
- Drop late connections of closed sessions - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11600](https://github.com/vitest-dev/vitest/issues/11600) [<samp>(f161e)</samp>](https://github.com/vitest-dev/vitest/commit/f161e6df2)
- Wait 30s for the browser to close - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11601](https://github.com/vitest-dev/vitest/issues/11601) [<samp>(6498b)</samp>](https://github.com/vitest-dev/vitest/commit/6498b666a)
- Run global setup once with instances - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11596](https://github.com/vitest-dev/vitest/issues/11596) [<samp>(8dd67)</samp>](https://github.com/vitest-dev/vitest/commit/8dd67c262)
- **reporter**:
- End reason `&#​39;failed&#​39;` on worker crash - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11568](https://github.com/vitest-dev/vitest/issues/11568) [<samp>(6ae8e)</samp>](https://github.com/vitest-dev/vitest/commit/6ae8e89ff)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.4...v5.0.5)
### [`v5.0.4`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.4)
[Compare Source](https://github.com/vitest-dev/vitest/compare/v5.0.3...v5.0.4)
##### 🚀 Features
- **experimental**:
- Tag cache directories with CACHEDIR.TAG - by [@​lifeiscontent](https://github.com/lifeiscontent) in [#​11461](https://github.com/vitest-dev/vitest/issues/11461) [<samp>(a8ea3)</samp>](https://github.com/vitest-dev/vitest/commit/a8ea3c8fd)
- Support `test.ui.theme` option - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11499](https://github.com/vitest-dev/vitest/issues/11499) [<samp>(1da66)</samp>](https://github.com/vitest-dev/vitest/commit/1da66405d)
- Highlight selector multiple matches in trace view - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11489](https://github.com/vitest-dev/vitest/issues/11489) [<samp>(5abba)</samp>](https://github.com/vitest-dev/vitest/commit/5abba1e1b)
- Print how many tests were affected and a total when running `--changed` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11424](https://github.com/vitest-dev/vitest/issues/11424) [<samp>(a2336)</samp>](https://github.com/vitest-dev/vitest/commit/a23368585)
- Add an option to cache dependencies instead of statically parsing them - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11515](https://github.com/vitest-dev/vitest/issues/11515) [<samp>(c0601)</samp>](https://github.com/vitest-dev/vitest/commit/c06012ac8)
- Add fit and zoom controls to trace viewer - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11490](https://github.com/vitest-dev/vitest/issues/11490) [<samp>(f5dd9)</samp>](https://github.com/vitest-dev/vitest/commit/f5dd99ed0)
##### 🐞 Bug Fixes
- Fail the run on git and location filter errors - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11430](https://github.com/vitest-dev/vitest/issues/11430) [<samp>(30d03)</samp>](https://github.com/vitest-dev/vitest/commit/30d0304d2)
- Enable fsModuleCache by default - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11435](https://github.com/vitest-dev/vitest/issues/11435) [<samp>(ad208)</samp>](https://github.com/vitest-dev/vitest/commit/ad208cc29)
- Track project files and mocks with --changed - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11432](https://github.com/vitest-dev/vitest/issues/11432) [<samp>(b0f2b)</samp>](https://github.com/vitest-dev/vitest/commit/b0f2b3bb9)
- Refactor caching, fix `:` in project and change the shape of `results` cache - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11453](https://github.com/vitest-dev/vitest/issues/11453) [<samp>(9673c)</samp>](https://github.com/vitest-dev/vitest/commit/9673c49a4)
- Keep full `$` string values when `taskTitleValueFormatTruncate` is 0 - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11485](https://github.com/vitest-dev/vitest/issues/11485) [<samp>(4f7e1)</samp>](https://github.com/vitest-dev/vitest/commit/4f7e1799b)
- Resolve node builtins in client environments - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11417](https://github.com/vitest-dev/vitest/issues/11417) [<samp>(56b31)</samp>](https://github.com/vitest-dev/vitest/commit/56b319ac6)
- Fix module graph builtin externals after [#​11421](https://github.com/vitest-dev/vitest/issues/11421) - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11491](https://github.com/vitest-dev/vitest/issues/11491) and [#​11421](https://github.com/vitest-dev/vitest/issues/11421) [<samp>(008e1)</samp>](https://github.com/vitest-dev/vitest/commit/008e184cb)
- Wrap module mocks during in-source testing - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11505](https://github.com/vitest-dev/vitest/issues/11505) [<samp>(36d19)</samp>](https://github.com/vitest-dev/vitest/commit/36d19cb00)
- Handle line endings in snapshot - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11522](https://github.com/vitest-dev/vitest/issues/11522) [<samp>(4c468)</samp>](https://github.com/vitest-dev/vitest/commit/4c468aa40)
- Respect root in projects - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11521](https://github.com/vitest-dev/vitest/issues/11521) [<samp>(26642)</samp>](https://github.com/vitest-dev/vitest/commit/26642f793)
- Resolve mocks in directories with spaces - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11539](https://github.com/vitest-dev/vitest/issues/11539) [<samp>(caaef)</samp>](https://github.com/vitest-dev/vitest/commit/caaef9416)
- **api**:
- Publish the api token atomically - by [@​umairnawaz333](https://github.com/umairnawaz333) in [#​11323](https://github.com/vitest-dev/vitest/issues/11323) [<samp>(6f990)</samp>](https://github.com/vitest-dev/vitest/commit/6f990fef1)
- **browser**:
- Close the mock route interception race - by [@​cplieger](https://github.com/cplieger) and [@​sheremet-va](https://github.com/sheremet-va) in [#​8339](https://github.com/vitest-dev/vitest/issues/8339) and [#​11083](https://github.com/vitest-dev/vitest/issues/11083) [<samp>(d6620)</samp>](https://github.com/vitest-dev/vitest/commit/d6620fae6)
- Allow toHaveTextContent without arguments - by [@​nomadical](https://github.com/nomadical) in [#​11425](https://github.com/vitest-dev/vitest/issues/11425) [<samp>(8ebcf)</samp>](https://github.com/vitest-dev/vitest/commit/8ebcf5f8a)
- Apply API options without browser config - by [@​sheremet-va](https://github.com/sheremet-va) in [#​10852](https://github.com/vitest-dev/vitest/issues/10852) [<samp>(ad055)</samp>](https://github.com/vitest-dev/vitest/commit/ad055837b)
- Preserve undefined command arguments - by [@​sheremet-va](https://github.com/sheremet-va) and [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11497](https://github.com/vitest-dev/vitest/issues/11497) [<samp>(1576d)</samp>](https://github.com/vitest-dev/vitest/commit/1576d3d89)
- Wait for setup mocks before importing a test file - by [@​kasperpeulen](https://github.com/kasperpeulen) in [#​11520](https://github.com/vitest-dev/vitest/issues/11520) [<samp>(b61d1)</samp>](https://github.com/vitest-dev/vitest/commit/b61d1ced3)
- Avoid extra scroll outside the iframe - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11523](https://github.com/vitest-dev/vitest/issues/11523) [<samp>(662e8)</samp>](https://github.com/vitest-dev/vitest/commit/662e8a363)
- Run browser instances as workers - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11525](https://github.com/vitest-dev/vitest/issues/11525) [<samp>(bf04b)</samp>](https://github.com/vitest-dev/vitest/commit/bf04b9ccc)
- ⚠️ This can degrade performance if you have a custom `maxWorkers` setting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.
- Open one cdp session per tester - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11542](https://github.com/vitest-dev/vitest/issues/11542) [<samp>(69e63)</samp>](https://github.com/vitest-dev/vitest/commit/69e6369f6)
- Clean up unmocked and pending mocks - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11537](https://github.com/vitest-dev/vitest/issues/11537) [<samp>(5c955)</samp>](https://github.com/vitest-dev/vitest/commit/5c9552173)
- **coverage**:
- V8 browser memory leak between test files - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11466](https://github.com/vitest-dev/vitest/issues/11466) [<samp>(2297d)</samp>](https://github.com/vitest-dev/vitest/commit/2297d93a8)
- `allowExternal` fails to include uncovered files - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11513](https://github.com/vitest-dev/vitest/issues/11513) [<samp>(4ef00)</samp>](https://github.com/vitest-dev/vitest/commit/4ef000a93)
- Filenames containing brackets incorrectly showing as uncovered - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11531](https://github.com/vitest-dev/vitest/issues/11531) [<samp>(0fa80)</samp>](https://github.com/vitest-dev/vitest/commit/0fa80f53c)
- Istanbul coverage wrong when module transform warmups - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11529](https://github.com/vitest-dev/vitest/issues/11529) [<samp>(9f61d)</samp>](https://github.com/vitest-dev/vitest/commit/9f61dcca2)
- **deps**:
- Update all non-major dependencies - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11167](https://github.com/vitest-dev/vitest/issues/11167) [<samp>(c74e0)</samp>](https://github.com/vitest-dev/vitest/commit/c74e099a9)
- **expect**:
- Fix `Map` and `Set` deep equality in some assertions - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11402](https://github.com/vitest-dev/vitest/issues/11402) [<samp>(b4e79)</samp>](https://github.com/vitest-dev/vitest/commit/b4e79fd7a)
- Check value in chai-style returned - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11500](https://github.com/vitest-dev/vitest/issues/11500) [<samp>(1aca0)</samp>](https://github.com/vitest-dev/vitest/commit/1aca02a21)
- **mocker**:
- Fix native loader mocking edge cases - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11540](https://github.com/vitest-dev/vitest/issues/11540) [<samp>(cd423)</samp>](https://github.com/vitest-dev/vitest/commit/cd423ba04)
- **pretty-format**:
- Support boxed symbols - by [@​lehni](https://github.com/lehni) in [#​11445](https://github.com/vitest-dev/vitest/issues/11445) and [#​11446](https://github.com/vitest-dev/vitest/issues/11446) [<samp>(eba44)</samp>](https://github.com/vitest-dev/vitest/commit/eba44926e)
- **reporters**:
- Junit to strip ANSI sequences from all XML attributes - by [@​meganemura](https://github.com/meganemura) and **Claude Opus 5.5** in [#​11407](https://github.com/vitest-dev/vitest/issues/11407) [<samp>(e1a73)</samp>](https://github.com/vitest-dev/vitest/commit/e1a731470)
- **runner**:
- Don't cache failed fixture setups - by [@​hamed-bavar](https://github.com/hamed-bavar) in [#​11237](https://github.com/vitest-dev/vitest/issues/11237) and [#​11238](https://github.com/vitest-dev/vitest/issues/11238) [<samp>(4ee66)</samp>](https://github.com/vitest-dev/vitest/commit/4ee66c021)
- **typecheck**:
- Use typescript pool in toTestSpecification - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11451](https://github.com/vitest-dev/vitest/issues/11451) [<samp>(5f273)</samp>](https://github.com/vitest-dev/vitest/commit/5f2739e74)
- **ui**:
- Remove duplicate browser-open call opening two tabs - by [@​feastyr69](https://github.com/feastyr69) in [#​11356](https://github.com/vitest-dev/vitest/issues/11356) and [#​11358](https://github.com/vitest-dev/vitest/issues/11358) [<samp>(d7e13)</samp>](https://github.com/vitest-dev/vitest/commit/d7e1315c1)
- Simplify explorer filtering + fix nested tests when search matches a suite - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa**, **Codex** and **Claude Opus 5.5** in [#​11262](https://github.com/vitest-dev/vitest/issues/11262) [<samp>(a627b)</samp>](https://github.com/vitest-dev/vitest/commit/a627be498)
- Store module graph once per environment - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11421](https://github.com/vitest-dev/vitest/issues/11421) [<samp>(af903)</samp>](https://github.com/vitest-dev/vitest/commit/af903c65e)
- Mount index.html handler on the ui base path - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11517](https://github.com/vitest-dev/vitest/issues/11517) [<samp>(1bc24)</samp>](https://github.com/vitest-dev/vitest/commit/1bc2495c7)
- Center split pane resize handle - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude Opus 5.5** in [#​11506](https://github.com/vitest-dev/vitest/issues/11506) [<samp>(e658b)</samp>](https://github.com/vitest-dev/vitest/commit/e658b9b6a)
- **vm**:
- Bind `this` to `module.exports` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11504](https://github.com/vitest-dev/vitest/issues/11504) [<samp>(b618a)</samp>](https://github.com/vitest-dev/vitest/commit/b618afd5c)
##### 🏎 Performance
- Reuse fsModuleCache when filtering by source - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11428](https://github.com/vitest-dev/vitest/issues/11428) [<samp>(7ebd9)</samp>](https://github.com/vitest-dev/vitest/commit/7ebd95fdd)
- **spy**: Reset only mocks that were called or reconfigured - by [@​johan-gorter](https://github.com/johan-gorter) and **Claude Opus 5.5** in [#​11197](https://github.com/vitest-dev/vitest/issues/11197) [<samp>(28ef9)</samp>](https://github.com/vitest-dev/vitest/commit/28ef93df2)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.3...v5.0.4)
### [`v5.0.3`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.3)
[Compare Source](https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3)
##### 🐞 Bug Fixes
- Isolate `result.status` between `repeats` runs - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11218](https://github.com/vitest-dev/vitest/issues/11218) [<samp>(5dbeb)</samp>](https://github.com/vitest-dev/vitest/commit/5dbebe9e3)
- Don't print an interceptor warning in browser mode - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11377](https://github.com/vitest-dev/vitest/issues/11377) [<samp>(15cc0)</samp>](https://github.com/vitest-dev/vitest/commit/15cc006aa)
- Don't retry when `test.fails` expectedly failed - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11219](https://github.com/vitest-dev/vitest/issues/11219) [<samp>(b2458)</samp>](https://github.com/vitest-dev/vitest/commit/b24585f08)
- Scope cache key generators to projects - by [@​ecoyoung](https://github.com/ecoyoung) in [#​11281](https://github.com/vitest-dev/vitest/issues/11281) and [#​11301](https://github.com/vitest-dev/vitest/issues/11301) [<samp>(92ba7)</samp>](https://github.com/vitest-dev/vitest/commit/92ba7fc1d)
- **browser**:
- Delay server `listen` until tests start running - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11366](https://github.com/vitest-dev/vitest/issues/11366) [<samp>(7d8ed)</samp>](https://github.com/vitest-dev/vitest/commit/7d8ed3e9b)
- Check mock path boundaries - by [@​saryn17](https://github.com/saryn17), **Ryosei Sato** and [@​sheremet-va](https://github.com/sheremet-va) in [#​11361](https://github.com/vitest-dev/vitest/issues/11361) and [#​11362](https://github.com/vitest-dev/vitest/issues/11362) [<samp>(1c388)</samp>](https://github.com/vitest-dev/vitest/commit/1c3888bce)
- Keep config of browser-consumed environments - by [@​kasperpeulen](https://github.com/kasperpeulen) and **Claude** in [#​11378](https://github.com/vitest-dev/vitest/issues/11378) [<samp>(aafc0)</samp>](https://github.com/vitest-dev/vitest/commit/aafc0996f)
- Ignore page crash while cancelling - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11386](https://github.com/vitest-dev/vitest/issues/11386) [<samp>(7c367)</samp>](https://github.com/vitest-dev/vitest/commit/7c36748fa)
- `toMatchScreenshot` uses wrong reference on retried tests - by [@​macarie](https://github.com/macarie) in [#​11393](https://github.com/vitest-dev/vitest/issues/11393) [<samp>(c22ab)</samp>](https://github.com/vitest-dev/vitest/commit/c22aba992)
- **cache**:
- Revalidate imports of cached modules - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11381](https://github.com/vitest-dev/vitest/issues/11381) [<samp>(38f98)</samp>](https://github.com/vitest-dev/vitest/commit/38f98855f)
- **deps**:
- Pin `why-is-node-running` to `3.2.1` to avoid users running into `ERR_PNPM_TRUST_DOWNGRADE` - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11403](https://github.com/vitest-dev/vitest/issues/11403) [<samp>(f6c9a)</samp>](https://github.com/vitest-dev/vitest/commit/f6c9a4977)
- **expect**:
- Pass current equality testers to `expect.extend` asymmetric matchers - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Claude** in [#​11401](https://github.com/vitest-dev/vitest/issues/11401) [<samp>(3e794)</samp>](https://github.com/vitest-dev/vitest/commit/3e794a96b)
- **jsdom**:
- Support Blob on jsdom 30.1 - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11379](https://github.com/vitest-dev/vitest/issues/11379) [<samp>(6c49b)</samp>](https://github.com/vitest-dev/vitest/commit/6c49b7197)
- **pool**:
- Preserve unique pool ids when `groupOrder` is set - by [@​mtorp](https://github.com/mtorp) in [#​11392](https://github.com/vitest-dev/vitest/issues/11392) [<samp>(50312)</samp>](https://github.com/vitest-dev/vitest/commit/50312ebb4)
- **ui**:
- Split-pane handle overlapping iframe - by [@​macarie](https://github.com/macarie) in [#​11221](https://github.com/vitest-dev/vitest/issues/11221) [<samp>(f91db)</samp>](https://github.com/vitest-dev/vitest/commit/f91db0dfd)
- **vitest**:
- Remove root temp dir on close - by [@​abhinav-phi](https://github.com/abhinav-phi) in [#​11248](https://github.com/vitest-dev/vitest/issues/11248) [<samp>(7c711)</samp>](https://github.com/vitest-dev/vitest/commit/7c7119cf7)
- **vm**:
- Do not optimize deps from index.html - by [@​ezefernandezyf](https://github.com/ezefernandezyf), **Hiroshi Ogawa** and **Codex (GPT-6)** in [#​11329](https://github.com/vitest-dev/vitest/issues/11329) and [#​11360](https://github.com/vitest-dev/vitest/issues/11360) [<samp>(caf28)</samp>](https://github.com/vitest-dev/vitest/commit/caf2887de)
- Don't reuse scripts across vite environments - by [@​MO2k4](https://github.com/MO2k4), **Martin Oehlert** and **Claude** in [#​11395](https://github.com/vitest-dev/vitest/issues/11395) [<samp>(346d3)</samp>](https://github.com/vitest-dev/vitest/commit/346d3896b)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.2...v5.0.3)
### [`v5.0.2`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.2)
[Compare Source](https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2)
##### 🐞 Bug Fixes
- Bind `process` in case global is overwritten - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11343](https://github.com/vitest-dev/vitest/issues/11343) [<samp>(0b792)</samp>](https://github.com/vitest-dev/vitest/commit/0b79231ad)
- **detect-async-leaks**:
- Ignore `process.stdio` handles - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11333](https://github.com/vitest-dev/vitest/issues/11333) [<samp>(0fd6b)</samp>](https://github.com/vitest-dev/vitest/commit/0fd6b9790)
- **expect**:
- Fix `toMatchObject` with asymmetric matchers - by [@​ShreeBohara](https://github.com/ShreeBohara), **Claude Opus 5**, [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex (GPT-5)** in [#​11100](https://github.com/vitest-dev/vitest/issues/11100) [<samp>(42523)</samp>](https://github.com/vitest-dev/vitest/commit/42523289e)
- **jsdom**:
- Fix `Request` with `Blob` body on jsdom 28+ - by [@​harshit-d3v](https://github.com/harshit-d3v) in [#​11295](https://github.com/vitest-dev/vitest/issues/11295) [<samp>(d1c3e)</samp>](https://github.com/vitest-dev/vitest/commit/d1c3ecc93)
- **reporter**:
- `agent` to respect `--silent` - by [@​Raj4478](https://github.com/Raj4478) and [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11271](https://github.com/vitest-dev/vitest/issues/11271) [<samp>(5b95e)</samp>](https://github.com/vitest-dev/vitest/commit/5b95efb6d)
- **reporters**:
- Handle concurrent `createReport` calls - by [@​7rulnik](https://github.com/7rulnik) in [#​11278](https://github.com/vitest-dev/vitest/issues/11278) [<samp>(e8e55)</samp>](https://github.com/vitest-dev/vitest/commit/e8e556ff7)
- `hanging-process` to use ESM entrypoint - by [@​AriPerkkio](https://github.com/AriPerkkio) in [#​11316](https://github.com/vitest-dev/vitest/issues/11316) [<samp>(4e91e)</samp>](https://github.com/vitest-dev/vitest/commit/4e91e5668)
- **spy**:
- Fix stack overflow when spying `Set.prototype.add` - by [@​fengmk2](https://github.com/fengmk2) in [#​11299](https://github.com/vitest-dev/vitest/issues/11299) [<samp>(a0a93)</samp>](https://github.com/vitest-dev/vitest/commit/a0a939653)
- **ui**:
- Persist authentication cookie beyond current browser session - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **OpenCode (gpt-5.6-sol)** in [#​11066](https://github.com/vitest-dev/vitest/issues/11066) [<samp>(f8819)</samp>](https://github.com/vitest-dev/vitest/commit/f88195e16)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.1...v5.0.2)
### [`v5.0.1`](https://github.com/vitest-dev/vitest/releases/tag/v5.0.1)
[Compare Source](https://github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1)
##### 🚀 Features
- **ui**:
- Move trace attempts selector to viewer header - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex** in [#​11189](https://github.com/vitest-dev/vitest/issues/11189) [<samp>(5dc4b)</samp>](https://github.com/vitest-dev/vitest/commit/5dc4b5c92)
- Add focused trace view layout mode - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa**, **OpenCode (gpt-5.6-sol)** and **Codex** in [#​11190](https://github.com/vitest-dev/vitest/issues/11190) [<samp>(376dc)</samp>](https://github.com/vitest-dev/vitest/commit/376dc3bc1)
##### 🐞 Bug Fixes
- Exit 1 when vitest list fails collection - by [@​hamed-bavar](https://github.com/hamed-bavar) in [#​11145](https://github.com/vitest-dev/vitest/issues/11145) and [#​11146](https://github.com/vitest-dev/vitest/issues/11146) [<samp>(6108b)</samp>](https://github.com/vitest-dev/vitest/commit/6108b8197)
- Keep parse error details in static collection - by [@​hamed-bavar](https://github.com/hamed-bavar) in [#​11150](https://github.com/vitest-dev/vitest/issues/11150) and [#​11151](https://github.com/vitest-dev/vitest/issues/11151) [<samp>(7c818)</samp>](https://github.com/vitest-dev/vitest/commit/7c818153a)
- Avoid recursive prototype in automocking - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11195](https://github.com/vitest-dev/vitest/issues/11195) [<samp>(99fc5)</samp>](https://github.com/vitest-dev/vitest/commit/99fc52591)
- Prevent false Vitest import resolution - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11196](https://github.com/vitest-dev/vitest/issues/11196) [<samp>(b426c)</samp>](https://github.com/vitest-dev/vitest/commit/b426c1976)
- Keep metadata file when clearing the cache - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11199](https://github.com/vitest-dev/vitest/issues/11199) [<samp>(73614)</samp>](https://github.com/vitest-dev/vitest/commit/73614654a)
- Correct typos in error message and comments - by [@​shinji00222](https://github.com/shinji00222) and **Shinji** in [#​11187](https://github.com/vitest-dev/vitest/issues/11187) [<samp>(115c3)</samp>](https://github.com/vitest-dev/vitest/commit/115c3f6d2)
- Resolve ResolvedConfig exactOptionalPropertyTypes errors - by [@​LukeAbby](https://github.com/LukeAbby) in [#​11175](https://github.com/vitest-dev/vitest/issues/11175) [<samp>(498fb)</samp>](https://github.com/vitest-dev/vitest/commit/498fbe922)
- Share the server on self-referencing `extends` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11034](https://github.com/vitest-dev/vitest/issues/11034) [<samp>(23dda)</samp>](https://github.com/vitest-dev/vitest/commit/23dda738c)
- Warn when deprecated `deps.optimizer.web` is used - by [@​im10furry](https://github.com/im10furry) in [#​11214](https://github.com/vitest-dev/vitest/issues/11214) [<samp>(2ce29)</samp>](https://github.com/vitest-dev/vitest/commit/2ce29d5fa)
- **browser**:
- Avoid double quotes in `config.define` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11198](https://github.com/vitest-dev/vitest/issues/11198) [<samp>(972e2)</samp>](https://github.com/vitest-dev/vitest/commit/972e24bab)
- **doctor**:
- Measure vm pools for custom environments - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11212](https://github.com/vitest-dev/vitest/issues/11212) [<samp>(91ab1)</samp>](https://github.com/vitest-dev/vitest/commit/91ab1588c)
- **expect**:
- Correct return value in `toMatchAriaSnapshot` - by [@​sheremet-va](https://github.com/sheremet-va) in [#​11208](https://github.com/vitest-dev/vitest/issues/11208) [<samp>(c119b)</samp>](https://github.com/vitest-dev/vitest/commit/c119be016)
- **fakeTimers**:
- Force `queueMicrotask` and `nextTick` in `toNotFake` - by [@​kingmakeruix](https://github.com/kingmakeruix), **kingmakeruix**, **Hiroshi Ogawa**, **Codex** and [@​hi-ogawa](https://github.com/hi-ogawa) in [#​11261](https://github.com/vitest-dev/vitest/issues/11261) [<samp>(a47d7)</samp>](https://github.com/vitest-dev/vitest/commit/a47d7908f)
- **snapshot**:
- Report obsolete keys next to skipped tests - by [@​hamed-bavar](https://github.com/hamed-bavar), **Hiroshi Ogawa** and **OpenCode (gpt-5.6-sol)** in [#​11157](https://github.com/vitest-dev/vitest/issues/11157) and [#​11158](https://github.com/vitest-dev/vitest/issues/11158) [<samp>(17e2b)</samp>](https://github.com/vitest-dev/vitest/commit/17e2b22dd)
- **types**:
- Make public declarations self-contained - by [@​ZoeySigel](https://github.com/ZoeySigel) in [#​11141](https://github.com/vitest-dev/vitest/issues/11141) [<samp>(45546)</samp>](https://github.com/vitest-dev/vitest/commit/455466c16)
- **ui**:
- Fix collapse/expand suite with file name search - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex** in [#​11260](https://github.com/vitest-dev/vitest/issues/11260) [<samp>(0a712)</samp>](https://github.com/vitest-dev/vitest/commit/0a7122daa)
- Fix explorer file summary count - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa**, **OpenCode (gpt-5.6-sol)** and **Codex** in [#​11125](https://github.com/vitest-dev/vitest/issues/11125) [<samp>(05982)</samp>](https://github.com/vitest-dev/vitest/commit/05982297d)
- **utils**:
- Fix `deepMerge` to handle prototype - by [@​hi-ogawa](https://github.com/hi-ogawa), **Hiroshi Ogawa** and **Codex** in [#​11215](https://github.com/vitest-dev/vitest/issues/11215) [<samp>(4944c)</samp>](https://github.com/vitest-dev/vitest/commit/4944cf498)
##### [View changes on GitHub](https://github.com/vitest-dev/vitest/compare/v5.0.0...v5.0.1)
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xOTguMyIsInVwZGF0ZWRJblZlciI6IjQ0LjE5OC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
5.0.0→5.0.5Release Notes
vitest-dev/vitest (vitest)
v5.0.5Compare Source
🐞 Bug Fixes
fs.denywith api token file - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11578 (28dc1)--changed- by @sheremet-va in #11583 (14921)datato theimport.meta.hotstub - by @sheremet-va in #11590 (3a828)skipinskipIf, ignoreundefinedoptions - by @sheremet-va in #11591 (d523a)&#​39;failed&#​39;on worker crash - by @AriPerkkio in #11568 (6ae8e)View changes on GitHub
v5.0.4Compare Source
🚀 Features
test.ui.themeoption - by @sheremet-va in #11499 (1da66)--changed- by @sheremet-va in #11424 (a2336)🐞 Bug Fixes
:in project and change the shape ofresultscache - by @sheremet-va in #11453 (9673c)$string values whentaskTitleValueFormatTruncateis 0 - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11485 (4f7e1)maxWorkerssetting. Previously, it was applied incorrectly and could lead to Vitest using too many resources. For example, a lower number would still open too many browsers. Fixing it means Vitest opens less instances by default now.allowExternalfails to include uncovered files - by @AriPerkkio in #11513 (4ef00)MapandSetdeep equality in some assertions - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11402 (b4e79)thistomodule.exports- by @sheremet-va in #11504 (b618a)🏎 Performance
View changes on GitHub
v5.0.3Compare Source
🐞 Bug Fixes
result.statusbetweenrepeatsruns - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11218 (5dbeb)test.failsexpectedly failed - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11219 (b2458)listenuntil tests start running - by @sheremet-va in #11366 (7d8ed)toMatchScreenshotuses wrong reference on retried tests - by @macarie in #11393 (c22ab)why-is-node-runningto3.2.1to avoid users running intoERR_PNPM_TRUST_DOWNGRADE- by @AriPerkkio in #11403 (f6c9a)expect.extendasymmetric matchers - by @hi-ogawa, Hiroshi Ogawa and Claude in #11401 (3e794)groupOrderis set - by @mtorp in #11392 (50312)View changes on GitHub
v5.0.2Compare Source
🐞 Bug Fixes
processin case global is overwritten - by @AriPerkkio in #11343 (0b792)process.stdiohandles - by @AriPerkkio in #11333 (0fd6b)toMatchObjectwith asymmetric matchers - by @ShreeBohara, Claude Opus 5, @hi-ogawa, Hiroshi Ogawa and Codex (GPT-5) in #11100 (42523)RequestwithBlobbody on jsdom 28+ - by @harshit-d3v in #11295 (d1c3e)agentto respect--silent- by @Raj4478 and @AriPerkkio in #11271 (5b95e)createReportcalls - by @7rulnik in #11278 (e8e55)hanging-processto use ESM entrypoint - by @AriPerkkio in #11316 (4e91e)Set.prototype.add- by @fengmk2 in #11299 (a0a93)View changes on GitHub
v5.0.1Compare Source
🚀 Features
🐞 Bug Fixes
extends- by @sheremet-va in #11034 (23dda)deps.optimizer.webis used - by @im10furry in #11214 (2ce29)config.define- by @sheremet-va in #11198 (972e2)toMatchAriaSnapshot- by @sheremet-va in #11208 (c119b)queueMicrotaskandnextTickintoNotFake- by @kingmakeruix, kingmakeruix, Hiroshi Ogawa, Codex and @hi-ogawa in #11261 (a47d7)deepMergeto handle prototype - by @hi-ogawa, Hiroshi Ogawa and Codex in #11215 (4944c)View changes on GitHub
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.