@vitest/coverage-v8 breaking changes
Updated December 4, 2026
On this page
Latest version 5.1.2, released November 25, 2026. Source repository
Its 5.0.0-beta.3 release requires Node.js 22 or later. Node.js end of life dates.
- From 4.1.11 to 5.1.1: 25 breaking changes in 11 versions.
- From 2.0.0 to 5.1.1: 70 breaking changes in 31 versions.
@vitest/coverage-v8 5.1.1 breaking changes
- Behavior changed
Timeout failures are now thrown as timeout error classes rather than a generic Error. Code that matches on the plain Error type for timeouts may need to be updated. github.com - Behavior changed
signal
Each retry attempt of a test now gets a new signal instead of sharing one. Code that relies on a single signal across retries may behave differently. github.com
@vitest/coverage-v8 5.1.0 breaking changes
- Behavior changed
autoAttachSubprocess
Subprocess coverage output is now stored in a .tmp directory. Update any scripts or paths that read it from the old location. github.com - Default changed
The browser trace view now shows only failures by default. Turn the failure-only mode off if you want the full trace. github.com - Default changed
The default browser port is now 23315. Set the port explicitly if your setup depended on the previous default. github.com
@vitest/coverage-v8 5.0.0 breaking changes
- Signature changed
default
Was const mod: CoverageProviderModule; now const mod: CoverageProviderModule & {extendedContextCoverageDir?: string; session?: unknown | null;}. npmjs.com
@vitest/coverage-v8 5.0.0-rc.4 breaking changes
- Default changed
vitest list
vitest list now parses files statically by default, which changes its output for existing users. github.com
@vitest/coverage-v8 5.0.0-rc.3 breaking changes
- Behavior changed
Coverage now uses the @vitest/istanbuljs packages, which changes the dependencies used for coverage. github.com - Behavior changed
toMatchFileSnapshot now rejects when it uses the same snapshot file as toMatchSnapshot. github.com
@vitest/coverage-v8 5.0.0-rc.1 breaking changes
- Behavior changed
A test now fails when an asynchronous assertion is not awaited, so tests that relied on unawaited assertions will fail. github.com - Behavior changed
Failure screenshots are now saved in attachmentsDir instead of the previous location. github.com - Behavior changed
Promise typing in expect and matchers changed, which may cause type errors in existing code. github.com - Behavior changed
The Vite server is now shared between inline projects, which changes server behavior for multi-project setups. github.com - Behavior changed
Temporal can now be mocked without fake timers, which changes what mocking Temporal does in existing tests. github.com - Behavior changed
Class mock prototype methods are now preserved on instances, which changes spy behavior. github.com - Behavior changed
Nested projects are now supported, which changes how project configs are resolved. github.com - Behavior changed
-t
The -t filter now uses > as the separator, so existing filter patterns may match differently. github.com - Default changed
Inline projects now extend the root config by default instead of starting from a blank config, so projects may pick up root settings they did not before. github.com
Older versions
26 older versions, each with its first changes. Sign up to see every change
Show 26 older versions
@vitest/coverage-v8 5.0.0-beta.7 breaking changes
- Behavior changed
Config resolution is now separate from server creation in the 5.0.0 beta line; code relying on the old ordering may need adjustment. github.com
@vitest/coverage-v8 5.0.0-beta.6 breaking changes
- Behavior changed
coverage.reportsDirectory
Runs that share a coverage.reportsDirectory now stop early with an error instead of continuing. Use separate reports directories for concurrent runs. github.com
@vitest/coverage-v8 5.0.0-beta.5 breaking changes
- Configuration changed
coverage.thresholds.perFile
The perFile threshold option is now an object instead of its previous form, so existing configs using the old form need updating. github.com
@vitest/coverage-v8 5.0.0-beta.3 breaking changes
- Removed
The release requires Node.js 22 and Vite 6.4, so older Node.js versions no longer work with this package. github.com - Behavior changed
coverage.exclude
Exclude patterns no longer pick up negated patterns from test.include, so coverage of some files may change. github.com
@vitest/coverage-v8 5.0.0-beta.1 breaking changes
- Behavior changed
coverage.exclude
The exclude glob for coverage now matches more files than before, so existing coverage results may change. Review your exclude globs. github.com - Behavior changed
coverage.include
The include glob for coverage now matches more files than before, so existing coverage results may change. Review your include globs. github.com
@vitest/coverage-v8 4.1.11 breaking changes
- Behavior changed
Redirect mocks now only work for paths inside the fs allowlist. Code that redirects mocks to other paths may stop working and needs its allowlist or mock paths updated. github.com
@vitest/coverage-v8 4.1.4 breaking changes
- Default changed
skipFull
When a coding agent is detected, the text coverage reporter skips fully covered files by default. Set skipFull explicitly to keep the previous output. github.com
@vitest/coverage-v8 4.1.3 breaking changes
- Removed
JestExtendError.context
The context property is no longer shown in verbose error reports. Code that reads JestExtendError.context from reported errors should stop relying on it. github.com
@vitest/coverage-v8 4.1.1 breaking changes
- Removed
Vitest 4.1.1 no longer supports Vite 8.beta. Projects using a Vite 8 beta build need to upgrade Vite to a supported version. github.com
@vitest/coverage-v8 4.1.0 breaking changes
- Behavior changed
hideSkippedTests
The hideSkippedTests option no longer hides test.todo entries. github.com - Behavior changed
toThrow
toThrow now supports arbitrary value equality and makes Error detection more robust. github.com
And 1 more in this version.
@vitest/coverage-v8 4.0.16 breaking changes
- Behavior changed
Calling a suite function such as describe from inside a test now fails. Move suite definitions out of test bodies. github.com
@vitest/coverage-v8 4.0.14 breaking changes
- Removed
prepare
The test runner's prepare method is removed. Custom runners that define or call prepare must remove that usage. github.com - Renamed
collect
The test runner's collect method is renamed to import. Custom runners that define or call collect must switch to import. github.com
@vitest/coverage-v8 4.0.7 breaking changes
- Behavior changed
Test files are sorted by project by default, which changes the order in which they run. Code that depends on the previous order may need adjusting. github.com
@vitest/coverage-v8 4.0.0 breaking changes
- Removed
Vite 5 is no longer supported, so projects using it must upgrade Vite. github.com - Removed
Deprecated coverage options are removed in favor of exports from vitest/node. github.com
And 5 more in this version.
@vitest/coverage-v8 4.0.0-beta.1 breaking changes
- Removed
Deprecated coverage options were removed in favor of vitest/node exports, so code using the old options must switch to those exports. github.com - Removed
coverage.all
The coverage .all option is gone and include/exclude handling was reworked, so configs relying on them need updating. github.com
And 1 more in this version.
@vitest/coverage-v8 3.2.5 breaking changes
- Behavior changed
browser.cdp
The browser client cdp API is now disabled when allowWrite or allowExec is set to false. Code relying on cdp in that setup will no longer work. github.com
@vitest/coverage-v8 3.2.4 breaking changes
- Behavior changed
--shard
Running with --shard x/<count> where count exceeds the number of test files now throws an error. Use a shard count that does not exceed the number of test files. github.com
@vitest/coverage-v8 3.2.0 breaking changes
- Behavior changed
The expect package no longer bundles @types/chai, so projects using chai types may need to install @types/chai themselves. github.com
@vitest/coverage-v8 3.0.8 breaking changes
- Configuration changed
config.isolate
Browser test isolation is now controlled by browser.isolate. Code that relied on config.isolate for browser mode should move the setting to browser.isolate. github.com
@vitest/coverage-v8 3.0.6 breaking changes
- Default changed
queueMicrotask is excluded from the default fake timers so Node fetch keeps working. Tests that relied on it being faked by default may need to fake it explicitly. github.com - Signature changed
browser:default
Was const _default: {startCoverage(): Promise<void>; takeCoverage(): Promise<{result: any[];}>; stopCoverage(): void; getProvider(): Promise<V8CoverageProvider>;}; now const mod: CoverageProviderModule. npmjs.com
And 1 more in this version.
@vitest/coverage-v8 3.0.0 breaking changes
- Behavior changed
The bundled fake-timers dependency was updated to v14, which may change fake timer behavior. github.com - Behavior changed
Snapshot state is now reset for retry and repeats runs, which may change snapshot results. github.com
And 9 more in this version.
@vitest/coverage-v8 2.1.5 breaking changes
- Removed
sequence.concurrent
The sequence.concurrent option is no longer part of the RuntimeConfig type, so code that reads or sets it through that type may fail to compile. github.com - Behavior changed
expect.poll
Calls to .poll, .element, .rejects/.resolves and locator.* that are not awaited now throw an error and print a warning, so such code must add await. github.com
@vitest/coverage-v8 2.1.2 breaking changes
- Behavior changed
Files with the .astro extension are now included in coverage reports by default, so reported numbers can change. Exclude them if you do not want them counted. github.com - Behavior changed
coverage.cleanOnRerun
With cleanOnRerun set to false, previous coverage results are now invalidated rather than kept. Check any workflow that relied on old results being reused. github.com
@vitest/coverage-v8 2.0.4 breaking changes
- Signature changed
default
Was const _default: {getProvider(): Promise<V8CoverageProvider>; startCoverage(): void; takeCoverage(): Promise<unknown>; stopCoverage(): void;}; now const _default: {startCoverage(): void; takeCoverage(): Promise<{result... npmjs.com
@vitest/coverage-v8 2.0.2 breaking changes
- Configuration changed
The web-worker package's peer dependency version on vitest was adjusted; check your installed vitest version matches. github.com
@vitest/coverage-v8 2.0.0 breaking changes
- Behavior changed
coverage.exclude
If coverage.exclude is overridden, test files are no longer excluded automatically; add test patterns manually or merge with coverageConfigDefaults.exclude. github.com - Default changed
coverage.ignoreEmptyLines
Coverage results may differ noticeably from Vitest v1 because empty lines are now ignored by default. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.