-
Notifications
You must be signed in to change notification settings - Fork 0
Bump @vitest/coverage-v8 from 3.2.4 to 4.1.2 #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
dependabot
wants to merge
1
commit into
main
Choose a base branch
from
dependabot/npm_and_yarn/vitest/coverage-v8-4.1.2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: lokalise/fastify-extras
Length of output: 402
🌐 Web query:
vitest v4 coverage-v8 compatibility requirements and breaking changes💡 Result:
Vitest v4 compatibility requirements for coverage-v8: Requires Vite >=6.0.0 and Node.js >=20.0.0. Install
@vitest/coverage-v8and set coverage.provider: 'v8' (default provider). Breaking changes in v4 for coverage-v8: - Switched to new AST-based remapping (from v8-to-istanbul), providing more accurate coverage matching Istanbul; expect changes in reports, fewer false positives. - coverage.ignoreEmptyLines removed (empty lines without runtime code excluded by default). - coverage.experimentalAstAwareRemapping removed (now always on). - coverage.all and coverage.extensions removed; default to including only files loaded during tests. Explicitly set coverage.include (e.g., ['packages//src/.{js,ts}']) for uncovered files. - Updated ignore hints to Istanbul-compatible: use /* v8 ignore next /, / v8 ignore start / ... / v8 ignore stop /, often with --@preserve(/ v8 ignore next --@preserve/). See docs for full syntax. - coverage.ignoreClassMethods now supported. - V8-specific: Requires V8 runtime (Node.js, Chrome); no pre-instrumentation, but minor V8 limitations apply. Config example: export default defineConfig({ test: { coverage: { provider: 'v8', include: ['src//.{js,ts}'], exclude: ['src//.test.ts'], }, }, }); Run with npx vitest --coverage. V8 remains default and recommended for speed + accuracy.Citations:
Critical: Version mismatch between
@vitest/coverage-v8(v4.1.2) andvitestcore (v3.2.4).The
@vitest/coverage-v8package is updated to v4.1.2, butvitestitself (line 86) remains at v3.2.4. This major version mismatch will break coverage functionality. Additionally, the vitest.config.mts usesall: true(line 23), which was removed in v4 as part of breaking changes that require explicitcoverage.includeconfiguration instead.Update
vitestto^4.1.2to match the coverage plugin version, and audit the coverage configuration for v4 breaking changes including removal ofcoverage.alland requirement for explicitcoverage.include.🤖 Prompt for AI Agents