v5.1.0-beta.1Pre-release
Added 8
- Add --last-failed to run only failed tests
- Support Temporal.Instant and Temporal.ZonedDateTime in vi.setSystemTime()
- Introduce --since-last-run flag
- Expose per-retry/repeat attempt result
- Support fake timers for node:timers and node:timers/promise
- Mock modules through an import map in browser mode
- Introduce experimental pointer API in browser mode
- Capture aria snapshot in trace view in browser mode
Changed 5
- Drop experimental label from trace view in browser mode
- Change default browser port to 23315
- Update all non-major dependencies
- Reuse fsModuleCache in static collection
- Map only first frame for trace locations in browser mode
Fixed 6
- Rerun setup files after --changed filtering
- Return the mock to concurrent imports
- Don't fail on console log pending at teardown
- Reference chai types in every d.ts chunk
- Advance fake timers in actions and expect.element in browser mode
- V8 coverage autoAttachSubprocess uses the .tmp directory
From Vitest
🚀 Features
- Add
--last-failedto run only failed tests - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11558 (82f63) - Support
Temporal.InstantandTemporal.ZonedDateTimeinvi.setSystemTime()- by @Prajwal2246, Prajwal2246, Claude Opus 5.5, Hiroshi Ogawa and Codex (GPT-6) in https://github.com/vitest-dev/vitest/issues/11321 (f150f) - Introduce
--since-last-runflag - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11516 (08bd9) - Expose per-retry/repeat attempt result - by @hi-ogawa, Hiroshi Ogawa, Codex (GPT-6) and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11232 (21be4)
- Support fake timers for
node:timersandnode:timers/promise- by @hi-ogawa, Hiroshi Ogawa, OpenCode and Codex (GPT-6) in https://github.com/vitest-dev/vitest/issues/10899 (fbe97) - browser:
- Mock modules through an import map - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11534 (707f8)
- Drop experimental label from trace view - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11518 (44c3c)
- Introduce experimental
pointerAPI - by @macarie in https://github.com/vitest-dev/vitest/issues/10780 (5dc09) - Capture aria snapshot in trace view - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11492 (0cc39)
🐞 Bug Fixes
- Rerun setup files after
--changedfiltering - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11621 (3a39c) - Return the mock to concurrent imports - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11623 (1453b)
- Don't fail on console log pending at teardown - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11619 (a60b8)
- Reference chai types in every d.ts chunk - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11618 (fb150)
- browser:
- Change default port to 23315 - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11640 (a2ec4)
- Advance fake timers in actions and expect.element - by @julienw, Hiroshi Ogawa and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11242 (68190)
- coverage:
- V8
autoAttachSubprocessto use.tmpdirectory - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/11632 (de5af)
- V8
- deps:
- Update all non-major dependencies - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11637 (2b18e)
🏎 Performance
- Reuse fsModuleCache in static collection - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/11622 (1766c)
- browser: Map only first frame for trace locations - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in https://github.com/vitest-dev/vitest/issues/11613 (a967d)