Skip to content

chore(deps): upgrade vitest to 4.1.11 and drop the GHSA-82fw-gwwq-j7x9 exception - #208

Merged
ElbertePlinio merged 2 commits into
mainfrom
chore/vitest-4
Sep 25, 2026
Merged

ElbertePlinio merged 2 commits into
mainfrom
chore/vitest-4

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

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 stricter vi.fn typing.

Verified locally: typecheck, lint, build, bun run test:coverage with PICKFORGE_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.

…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.
@ElbertePlinio
ElbertePlinio merged commit 7ecd555 into main Sep 25, 2026
14 of 15 checks passed
@ElbertePlinio
ElbertePlinio deleted the chore/vitest-4 branch September 25, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deps): upgrade vitest to 4.x and drop the GHSA-82fw-gwwq-j7x9 exception

1 participant