v5.0.0-rc.3Pre-release
Added 5
- Promote parseSpecifications out of experimental
- Highlight editor source locations in UI
- Navigate trace steps with keyboard and remove indirect editor focus in UI
- Persist trace view selection in URL in UI
- Toggle trace target highlight in UI
Changed 1
- Switch coverage to @vitest/istanbuljs packages
Fixed 14
- Combine multiple --project filters correctly
- Fix recordArtifact location with vi.defineHelper
- Invalidate resolved setup files
- Accept awaited value in vi.when thenResolve
- Ignore computed member calls in static collection
- Don't hang when ui: true in projects for browser
- Preserve trace popover state for browser
- V8 to ignore Vite SSR's generated import bindings for coverage
- Reject when toMatchFileSnapshot uses same snapshot file as toMatchSnapshot
- Improve suite interaction and layout in explorer tree in UI
- Reveal explorer virtual scroller on resize in UI
- Persist trace step-iframe split pane sizes in UI
- Fall back to compiling from source when a module's code cache is rejected for vm
- Bind stdio's early in case overriden for worker
From Vitest
🚀 Features
- Promote parseSpecifications out of experimental - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11087 (b628c)
- coverage:
- Switch to
@vitest/istanbuljspackages - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11053 (5f6a5)
- Switch to
- ui:
- Highlight editor source locations - by @sheremet-va, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/11004 (bce2d)
- Navigate trace steps with keyboard and remove indirect editor focus - by @sheremet-va, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/11005 (6816f)
- Persist trace view selection in URL - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/10981 (3069e)
- Toggle trace target highlight - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/11049 (cd63e)
🐞 Bug Fixes
- Combine multiple --project filters correctly - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10988 (66c1c)
- Fix
recordArtifactlocation withvi.defineHelper- by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/11047 (c2186) - Invalidate resolved setup files - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11073 and https://github.com/vitest-dev/vitest/issues/11081 (488c0)
- Accept awaited value in vi.when thenResolve - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11084 (c10a1)
- Ignore computed member calls in static collection - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11085 (130f7)
- browser:
- Don't hang when
ui: truein projects - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/10994 (9f710) - Preserve trace popover state - by @liuluochen6-af, Hiroshi Ogawa, OpenCode and @hi-ogawa in https://github.com/vitest-dev/vitest/issues/10906 and https://github.com/vitest-dev/vitest/issues/11021 (1bbc2)
- Don't hang when
- coverage:
- V8 to ignore Vite SSR's generated import bindings - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11023 (c6174)
- deps:
- Update all non-major dependencies - in https://github.com/vitest-dev/vitest/issues/11043 (732df)
- snapshot:
- Reject when
toMatchFileSnapshotuses same snapshot file astoMatchSnapshot- by @hi-ogawa, Hiroshi Ogawa, OpenCode and @sheremet-va in https://github.com/vitest-dev/vitest/issues/10978 (17646)
- Reject when
- ui:
- Improve suite interaction and layout in explorer tree - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/10970 (91231)
- Reveal explorer virtual scroller on resize - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/10998 (1f4fc)
- Persist trace step-iframe split pane sizes - by @hi-ogawa, Hiroshi Ogawa and OpenCode in https://github.com/vitest-dev/vitest/issues/11027 (3cd01)
- vm:
- Fall back to compiling from source when a module's code cache is rejected - by @MarshallOfSound in https://github.com/vitest-dev/vitest/issues/11031 (c3ba1)
- worker:
- Bind stdio's early in case overriden - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11020 (67ef7)
🏎 Performance
- Initialize trace view in the orchestrator once per worker - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/10984 (fad26)
- cache:
- Hash the environment-invariant part of the fs module cache key once - by @MarshallOfSound in https://github.com/vitest-dev/vitest/issues/11029 (1d365)
- expect:
- Avoid redefining matcher state - by @scttcper and Codex in https://github.com/vitest-dev/vitest/issues/11048 (58e71)
- vm:
- Don't prewarm modules the worker never requests - by @MarshallOfSound and @sheremet-va in https://github.com/vitest-dev/vitest/issues/11033 (1e9f8)
- Let environments opt out of the module graph prewarm - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11078 (a6d5e)