Skip to content

Update vitest and coverage-v8 to 5 with Node 22 types - #49

Merged
sabind merged 1 commit into
masterfrom
update-vitest-5
Oct 22, 2026
Merged

sabind merged 1 commit into
masterfrom
update-vitest-5

Conversation

@sabind

@sabind sabind commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Why

Dependabot's vitest 5 pull requests (#43, #44, then #47) each failed npm ci, for two reasons:

  • @vitest/coverage-v8 must be exactly the same version as vitest.
  • vitest 5 requires @types/node ^22.0.0 || >=24.0.0, and the repository had ^20.

Closing #44 also made Dependabot ignore @vitest/coverage-v8 5.0.5, so its group could not pick it up again. This pull request makes all three updates in one change.

What

The tests now run on vitest 5. The Node types move to 22, the oldest Node the package supports.

Changes

  • package.json:

    • vitest goes from ^4.1.12 to ^5.0.5.
    • @vitest/coverage-v8 goes from ^4.1.12 to ^5.0.5.
    • @types/node goes from ^20.14.15 to ^22.20.5.

    No config change was needed.

Testing

  • npx tsc --noEmit passes with the Node 22 types.
  • npm run check passes: lint, build, all 181 tests under the 99/99 coverage gate, and the examples.
  • npm run audit finds 0 vulnerabilities, and npm run test:package confirms the packed package installs and runs.
  • npm run coverage:module reports 100% lines and branches for every module.
  • npm run test:visual passes 9 of 9, after npx playwright install chromium fetched the browser that Bump the npm-minor-and-patch group with 2 updates #41's Playwright update needs.

Risk and rollout

None. These are development dependencies only, and npm pack contents are unchanged.

Notes for reviewers

🤖 Generated with Claude Code

vitest 5 needs @vitest/coverage-v8 at the same version and @types/node
22 or later, so Dependabot's single-package updates (#43, #44, #47)
could not install. Node 22 types also match the oldest supported Node.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sabind
sabind merged commit 47237db into master Oct 22, 2026
4 checks passed
@sabind
sabind deleted the update-vitest-5 branch October 22, 2026 01:48
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.

2 participants