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/node-core
Length of output: 188
🌐 Web query:
vitest v4 coverage-v8 compatibility requirements with vitest v3💡 Result:
@vitest/coverage-v8is version-locked to Vitest (exact match), not just “compatible by major”.@vitest/coverage-v8@3.0.8declares peerDependencies:"vitest": "3.0.8"(and optional@vitest/browser: "3.0.8"). [1]@vitest/coverage-v8@4.1.0declares peerDependencies:"vitest": "4.1.0"(and optional@vitest/browser: "4.1.0"). [2]Implication: You generally can’t use a v4
coverage-v8with Vitest v3 (or vice‑versa) without peer-dep conflicts; install the same version as yourvitest.If you upgrade from Vitest v3 → v4, expect coverage output changes (even with the same
v8provider). Vitest v4’s V8 coverage remapping logic changed and can affect reported results. [3]Extra requirement when moving to Vitest v4: Vitest
4.0.0requires Node^20 || ^22 || >=24. [4]Sources:
[1]
@vitest/coverage-v8@3.0.8package.json (peerDependencies) [1][2]
@vitest/coverage-v8@4.1.0package.json (peerDependencies) [2][3] Vitest Migration Guide (v4 V8 coverage changes) [3]
[4]
vitest@4.0.0package.json (engines.node) [4]Resolve version incompatibility:
@vitest/coverage-v8@4.1.1requiresvitest@4.1.1.The coverage plugin
@vitest/coverage-v8@4.1.1(line 52) declares an exact peer dependency onvitest@4.1.1, but the main package (line 58) remains atvitest@3.2.4. This version mismatch will cause peer dependency conflicts and break test coverage functionality.Upgrade
vitestto^4.1.1to match the coverage plugin, or revert the coverage plugin to^3.2.4.🤖 Prompt for AI Agents