chore(deps): update vitest to v5.0.5
RE
2d ago+169+169+012345678901234567890123456789-146-146-012345678901234567890123456789
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @vitest/coverage-v8 (source) | 5.0.1 → 5.0.5 | ||
| vitest (source) | 5.0.1 → 5.0.5 |
Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
v5.0.5
🐞 Bug Fixes
- Keep vite default
fs.denywith api token file - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11578 (28dc1) - Handle quoted file names in
--changed- by @sheremet-va in #11583 (14921) - Add
datato theimport.meta.hotstub - by @sheremet-va in #11590 (3a828) - Set
skipinskipIf, ignoreundefinedoptions - by @sheremet-va in #11591 (d523a) - Skip builtin loading in async leak detector - by @sheremet-va in #11598 (fe86a)
- Keep the import frame in native loader errors - by @sheremet-va in #11599 (9697b)
- Run hook cleanups when a later hook fails - by @sheremet-va in #11605 (6c5a4)
- Release mocks of finished test files - by @sheremet-va in #11607 (e9c3d)
- Abort all running tests on cancel - by @sheremet-va in #11606 (6621a)
- browser:
- Ignore synthetic pagehide events - by @sheremet-va in #11582 (ca081)
- Run plugin buildStart on server creation - by @sheremet-va in #11593 (ea611)
- Drop late connections of closed sessions - by @sheremet-va in #11600 (f161e)
- Wait 30s for the browser to close - by @sheremet-va in #11601 (6498b)
- Run global setup once with instances - by @sheremet-va in #11596 (8dd67)
- reporter:
- End reason
&#​39;failed&#​39;on worker crash - by @AriPerkkio in #11568 (6ae8e)
- End reason
View changes on GitHub
v5.0.4
🚀 Features
- experimental:
- Tag cache directories with CACHEDIR.TAG - by @lifeiscontent in #11461 (a8ea3)
- Support
test.ui.themeoption - by @sheremet-va in #11499 (1da66) - Highlight selector multiple matches in trace view - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11489 (5abba)
- Print how many tests were affected and a total when running
--changed- by @sheremet-va in #11424 (a2336) - Add an option to cache dependencies instead of statically parsing them - by @sheremet-va in #11515 (c0601)
- Add fit and zoom controls to trace viewer - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11490 (f5dd9)
🐞 Bug Fixes
- Fail the run on git and location filter errors - by @sheremet-va in #11430 (30d03)
- Enable fsModuleCache by default - by @sheremet-va in #11435 (ad208)
- Track project files and mocks with --changed - by @sheremet-va in #11432 (b0f2b)
- Refactor caching, fix
:in project and change the shape ofresultscache - by @sheremet-va in #11453 (9673c) - Keep full
$string values whentaskTitleValueFormatTruncateis 0 - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11485 (4f7e1) - Resolve node builtins in client environments - by @sheremet-va in #11417 (56b31)
- Fix module graph builtin externals after #11421 - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11491 and #11421 (008e1)
- Wrap module mocks during in-source testing - by @sheremet-va in #11505 (36d19)
- Handle line endings in snapshot - by @sheremet-va in #11522 (4c468)
- Respect root in projects - by @sheremet-va in #11521 (26642)
- Resolve mocks in directories with spaces - by @sheremet-va in #11539 (caaef)
- api:
- Publish the api token atomically - by @umairnawaz333 in #11323 (6f990)
- browser:
- Close the mock route interception race - by @cplieger and @sheremet-va in #8339 and #11083 (d6620)
- Allow toHaveTextContent without arguments - by @nomadical in #11425 (8ebcf)
- Apply API options without browser config - by @sheremet-va in #10852 (ad055)
- Preserve undefined command arguments - by @sheremet-va and @AriPerkkio in #11497 (1576d)
- Wait for setup mocks before importing a test file - by @kasperpeulen in #11520 (b61d1)
- Avoid extra scroll outside the iframe - by @sheremet-va in #11523 (662e8)
- Run browser instances as workers - by @sheremet-va in #11525 (bf04b)
- ⚠️ This can degrade performance if you have a custom
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.
- ⚠️ This can degrade performance if you have a custom
- Open one cdp session per tester - by @sheremet-va in #11542 (69e63)
- Clean up unmocked and pending mocks - by @sheremet-va in #11537 (5c955)
- coverage:
- V8 browser memory leak between test files - by @AriPerkkio in #11466 (2297d)
allowExternalfails to include uncovered files - by @AriPerkkio in #11513 (4ef00)- Filenames containing brackets incorrectly showing as uncovered - by @AriPerkkio in #11531 (0fa80)
- Istanbul coverage wrong when module transform warmups - by @AriPerkkio in #11529 (9f61d)
- deps:
- Update all non-major dependencies - by @sheremet-va in #11167 (c74e0)
- expect:
- Fix
MapandSetdeep equality in some assertions - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11402 (b4e79) - Check value in chai-style returned - by @sheremet-va in #11500 (1aca0)
- Fix
- mocker:
- Fix native loader mocking edge cases - by @sheremet-va in #11540 (cd423)
- pretty-format:
- reporters:
- Junit to strip ANSI sequences from all XML attributes - by @meganemura and Claude Opus 5.5 in #11407 (e1a73)
- runner:
- Don't cache failed fixture setups - by @hamed-bavar in #11237 and #11238 (4ee66)
- typecheck:
- Use typescript pool in toTestSpecification - by @sheremet-va in #11451 (5f273)
- ui:
- Remove duplicate browser-open call opening two tabs - by @feastyr69 in #11356 and #11358 (d7e13)
- Simplify explorer filtering + fix nested tests when search matches a suite - by @hi-ogawa, Hiroshi Ogawa, Codex and Claude Opus 5.5 in #11262 (a627b)
- Store module graph once per environment - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11421 (af903)
- Mount index.html handler on the ui base path - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11517 (1bc24)
- Center split pane resize handle - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11506 (e658b)
- vm:
- Bind
thistomodule.exports- by @sheremet-va in #11504 (b618a)
- Bind
🏎 Performance
- Reuse fsModuleCache when filtering by source - by @sheremet-va in #11428 (7ebd9)
- spy: Reset only mocks that were called or reconfigured - by @johan-gorter and Claude Opus 5.5 in #11197 (28ef9)
View changes on GitHub
v5.0.3
🐞 Bug Fixes
- Isolate
result.statusbetweenrepeatsruns - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11218 (5dbeb) - Don't print an interceptor warning in browser mode - by @sheremet-va in #11377 (15cc0)
- Don't retry when
test.failsexpectedly failed - by @hi-ogawa, Hiroshi Ogawa and Codex (GPT-6) in #11219 (b2458) - Scope cache key generators to projects - by @ecoyoung in #11281 and #11301 (92ba7)
- browser:
- Delay server
listenuntil tests start running - by @sheremet-va in #11366 (7d8ed) - Check mock path boundaries - by @saryn17, Ryosei Sato and @sheremet-va in #11361 and #11362 (1c388)
- Keep config of browser-consumed environments - by @kasperpeulen and Claude in #11378 (aafc0)
- Ignore page crash while cancelling - by @sheremet-va in #11386 (7c367)
toMatchScreenshotuses wrong reference on retried tests - by @macarie in #11393 (c22ab)
- Delay server
- cache:
- Revalidate imports of cached modules - by @sheremet-va in #11381 (38f98)
- deps:
- Pin
why-is-node-runningto3.2.1to avoid users running intoERR_PNPM_TRUST_DOWNGRADE- by @AriPerkkio in #11403 (f6c9a)
- Pin
- expect:
- Pass current equality testers to
expect.extendasymmetric matchers - by @hi-ogawa, Hiroshi Ogawa and Claude in #11401 (3e794)
- Pass current equality testers to
- jsdom:
- Support Blob on jsdom 30.1 - by @sheremet-va in #11379 (6c49b)
- pool:
- ui:
- vitest:
- Remove root temp dir on close - by @abhinav-phi in #11248 (7c711)
- vm:
View changes on GitHub
v5.0.2
🐞 Bug Fixes
- Bind
processin case global is overwritten - by @AriPerkkio in #11343 (0b792) - detect-async-leaks:
- Ignore
process.stdiohandles - by @AriPerkkio in #11333 (0fd6b)
- Ignore
- expect:
- Fix
toMatchObjectwith asymmetric matchers - by @ShreeBohara, Claude Opus 5, @hi-ogawa, Hiroshi Ogawa and Codex (GPT-5) in #11100 (42523)
- Fix
- jsdom:
- Fix
RequestwithBlobbody on jsdom 28+ - by @harshit-d3v in #11295 (d1c3e)
- Fix
- reporter:
agentto respect--silent- by @Raj4478 and @AriPerkkio in #11271 (5b95e)
- reporters:
- spy:
- ui:
- Persist authentication cookie beyond current browser session - by @hi-ogawa, Hiroshi Ogawa and OpenCode (gpt-5.6-sol) in #11066 (f8819)
View changes on GitHub
Configuration
📅 Schedule: (in timezone Europe/Warsaw)
- Branch creation
- "before 6am on monday"
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.