Skip to content

chore(deps-dev): bump vitest and @vitest/coverage-v8 together to 5.0.3 - #118

Merged
blink-admin merged 1 commit into
mainfrom
chore/vitest-lockstep
Sep 30, 2026
Merged

blink-admin merged 1 commit into
mainfrom
chore/vitest-lockstep

Conversation

@grimen

@grimen grimen commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Supersedes #113 (@vitest/coverage-v8 4.1.11 → 5.0.1), which fails Unit / Coverage in examples/react-demo with:

Error: Cannot find package '@vitest/coverage-v8' imported from node_modules/vitest/dist/chunks/coverage.CX7NN5s7.js

Why

@vitest/coverage-v8 peers vitest at its exact version. main declares vitest ^5.0.0 next to coverage-v8 ^4.1.11 in all five vitest workspaces. So the lockfile hoists vitest@4.1.11 (coverage-v8's peer) to the root, and every workspace nests its own vitest@5.0.0. It works by accident.

Bumping either one alone breaks it:

What this does

  • Bumps vitest and @vitest/coverage-v8 to ^5.0.3 in esign-service, react-demo, mint-only-demo, serverless-handler-demo and scripts. The lockfile is regenerated so there is exactly one copy of each, hoisted.
  • Adds a vitest Dependabot group (vitest, @vitest/*, all update types) above npm-minor-patch, so the two only ever move together.

Verification

Coverage on every vitest workspace: service 558, react-demo 48, mint-only 24, serverless-handler 13, scripts 310, all passing.

After merging, #113 can be closed.

coverage-v8 peers vitest at its exact version. main declares vitest ^5
next to coverage-v8 ^4.1.11, so the root vitest resolved to 4.1.11 (the
coverage plugin's peer) and every workspace nested its own 5.0.0 - it
worked by accident. Bumping either alone breaks it: #113 (coverage-v8
alone) nests the plugin away from the hoisted vitest ("Cannot find
package '@vitest/coverage-v8'"), and #114's vitest bump hits ERESOLVE.

Moves both to 5.0.3 in all five vitest workspaces, relocked so one copy
of each is hoisted, and groups vitest + @vitest/* in dependabot.yml so
they only ever move together. Supersedes #113.
@blink-admin
blink-admin merged commit 9c7deaa into main Sep 30, 2026
16 of 17 checks passed
@blink-admin
blink-admin deleted the chore/vitest-lockstep branch September 30, 2026 20:30
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