Skip to content

chore(deps-dev): take vitest 5 and coverage-v8 5 together - #64

Merged
kkdev92 merged 1 commit into
mainfrom
chore/vitest-5
Sep 7, 2026
Merged

chore(deps-dev): take vitest 5 and coverage-v8 5 together#64
kkdev92 merged 1 commit into
mainfrom
chore/vitest-5

Conversation

@kkdev92

@kkdev92 kkdev92 commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Supersedes #63 and #62, which cannot merge separately.

Why one pull request

@vitest/coverage-v8 pins vitest exactly, so either bump alone fails npm ci:

npm error Conflicting peer dependency: vitest@4.1.11
npm error   peer vitest@"4.1.11" from @vitest/coverage-v8@4.1.11

That is why both of Dependabot's pull requests are red. Together they resolve cleanly.

Why this repository takes vitest 5 when the siblings do not

quick-utils and plantuml-local are holding at 4.x, because there the kit's published Vitest surface (@kkdev92/vscode-ext-kit/testing/vitest) stops sharing a module instance with the test file under vitest 5 — six integration tests see a mock that recorded nothing.

This repository does not use that surface. test/setup.ts mocks vscode itself, and vitest.config.ts already inlines the kit so the mock reaches the kit's own imports. The sibling result was measured here rather than assumed, and it does not reproduce.

Verification

The whole verify lane on vitest 5:

  • lint, compile, and the test typecheck
  • 453 tests with coverage — all passing
  • the e2e lane: 13 cases in a real Extension Host

🤖 Generated with Claude Code

Dependabot opened these as two pull requests, and neither could merge alone:
`@vitest/coverage-v8` pins `vitest` exactly, so bumping either one on its own
fails `npm ci` with ERESOLVE. Together they resolve cleanly.

vitest 5 was measured against this repository rather than assumed, because the
two sibling extensions are staying on 4.x -- there, the kit's published Vitest
surface stops sharing a module instance with the test file under 5, and six
integration tests see an empty mock. This repository does not use that surface:
`test/setup.ts` mocks `vscode` itself, and `vitest.config.ts` inlines the kit so
the mock reaches the kit's own imports. That difference is why the result
differs, and why the sibling finding was not carried over.

Verified: the whole `verify` lane on vitest 5 -- lint, compile, the test
typecheck, 453 tests with coverage, and the e2e lane, which is 13 cases in a
real Extension Host.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Uf34bXf9dd7BURuBCh7Wx
@kkdev92
kkdev92 merged commit 2be8cb3 into main Sep 7, 2026
16 checks passed
@kkdev92
kkdev92 deleted the chore/vitest-5 branch September 7, 2026 10:08
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.

1 participant