Repository navigation
chore(deps): upgrade vitest to 4.1.11 and drop the GHSA-82fw-gwwq-j7x9 exception - #208
Merged
Merged
Conversation
…exception Vitest 4 remaps V8 coverage through the source AST and counts more branches, so the same suite reports 80.58% branches instead of 88.81%. Recalibrate only the branches threshold to 78 to keep the previous margin under the new measurement.
Closed
2 tasks done
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #132
Upgrades vitest and @vitest/coverage-v8 from 3.2.6 to 4.1.11, the fixed release for GHSA-82fw-gwwq-j7x9, and removes the tracked exception from
osv-scanner.toml.Vitest 4 remaps V8 coverage through the source AST and counts more branches. The same 2130 tests report 80.58% branches instead of 88.81% (functions 93.4 to 86.62, statements 87.59 to 86.08, lines 87.59 to 87.22). Only the branches threshold moves, from 86 to 78, keeping the previous margin under the new measurement. The other thresholds are unchanged and still pass.
One test mock needed an explicit
Mock<() => void>type for vitest 4's strictervi.fntyping.Verified locally: typecheck, lint, build,
bun run test:coveragewithPICKFORGE_REQUIRE_BROWSER=1(149 files, 2130 passed, 6 skipped, same as on 3.2.6), osv-scanner v2.3.8 (the CI pin) reports no issues, PickCheck clean. Independent review found nothing.