@vitest/coverage-v8
5.1.0 · 2 Nov 2026MIT66.8M / weekRepositoryHomepagenpmAtom feed
5.1.1 is the newest release of 5.x.
In short
10 new3 faster25 fixed1 internal
Release note
Features
Add
--last-failedto run only failed testsSupport
Temporal.InstantandTemporal.ZonedDateTimeinvi.setSystemTime()Introduce
--since-last-runflagExpose per-retry/repeat attempt result
Support fake timers for
node:timersandnode:timers/promiseAllow coverage providers to store data in fs module cache
Interactively review failed snapshots
browser: Mock modules through an import map
browser: Drop experimental label from trace view
browser: Introduce experimental
pointerAPIbrowser: Capture aria snapshot in trace view
browser: Show trace steps timeline on terminal on test failure
browser: Add failure-only trace view mode
browser: Enable failure-only trace view by default
coverage: V8 to support
ignoreNodeoptionexperimental: Add trace timeline for node
experimental: Add message option to vi.waitFor and vi.waitUntil
Bug Fixes
Rerun setup files after
--changedfilteringReturn the mock to concurrent imports
Don't fail on console log pending at teardown
Reference chai types in every d.ts chunk
Detect mock factory cycles that form later
Skip fs module cache for typed import.meta.glob
Run tests that import a deleted file
Keep syntax highlighting in code frames
Respect CLI filters when prewarming browsers
Read cached source as utf-8
Inherit
watchfrom the root config in projectsPrefix expect.poll message to all errors
Support api.port 0
Show attempts in test error logs of retried tests
Preserve rootDir in project paths
browser: Change default port to 23315
browser: Advance fake timers in actions and expect.element
browser: Drop trace view warning without html reporter
browser: Detect shared chunks via the optimizer
browser: Clear screenshot stability timeout
browser: Measure prepare duration with one clock
browser: Keep failure screenshot per attempt
browser: Print trace timeline of each attempt
browser: Don't hang in
page.viewport()browser: Skip trace entries after their attempt ended
browser: Focus the iframe before clicking in playwright
browser: Fail the run when a tester cannot connect
browser: Treat edge as chromium in toHaveStyle
cache: Handle concurrent cache clearing
cache: Key module cache on the deps optimizer
cache: Do not fail when the cache dir is unwritable
cli: Use camelCase for sinceLastRun help
coverage: V8
autoAttachSubprocessto use.tmpdirectorycoverage: V8 to ignore Vite's generated CJS namespace import helper
deps: Update all non-major dependencies
expect: Keep soft .resolves/.rejects error location
mocker: Don't change the original prototype chain
mocker: Use root mocks for linked packages
runner: Don't drop throttled task updates
ui: Escape search text in explorer highlight
ui: Fix html reporter crash when --bail cancels files
ui: Fix quirks mode in trace view replay
ui: Let coverage report follow UI color scheme
ui: Open trace view only for tests with a trace
vm: Strip hashbang before compiling CommonJS dependencies
vm: Keep node globals after teardown
vm: Reset fake timers after each test file
vm: Keep assignable accessor globals writable in node environment
Performance
Reuse fsModuleCache in static collection
Cache setup/mock resolves in reused workers
Don't refetch warm modules in reused runners
browser: Map only first frame for trace locations
browser: Disable WebSocketServer's allowSynchronousEvents
coverage: Istanbul to use
magic-string+rolldownfor instrumentationcoverage: Istanbul to collect uncovered files in
Promise.allcoverage: Istanbul to not store input source maps in coverage data
expect: Compare typed arrays in one loop
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.