Repository navigation
chore(deps-dev): bump @vitest/coverage-v8 from 4.1.12 to 5.0.5 - #133
Closed
dependabot[bot] wants to merge 1 commit into
Closed
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps [@vitest/coverage-v8](https://github.com/vitest-dev/vitest/tree/HEAD/packages/coverage-v8) from 4.1.12 to 5.0.5. - [Release notes](https://github.com/vitest-dev/vitest/releases) - [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md) - [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/coverage-v8) --- updated-dependencies: - dependency-name: "@vitest/coverage-v8" dependency-version: 5.0.5 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
❌ Deploy Preview for cscsdev failed.
|
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Bump vitest, @vitest/browser-playwright and @vitest/coverage-v8 from 4.1.12 to 5.0.5 together. Each Dependabot PR (#111, #102, #133) fails alone at `npm ci` because the packages peer-pin each other to the exact same vitest version. Vitest 5 ships browser-mode DOM matcher types in which toHaveTextContent no longer accepts a RegExp. They shadow @testing-library/jest-dom's signature and broke `astro check` on five existing assertions, although the jsdom tests still run jest-dom's matcher. Re-declare jest-dom's signature in src/test/vitest-matchers.d.ts instead of changing tests. 5.0.5 was published 2026-10-15, past the 7-day cooldown; 5.1.0 (2026-11-02) is not. Supersedes #111, #102 and #133. Refs: #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Bump vitest, @vitest/browser-playwright and @vitest/coverage-v8 from 4.1.12 to 5.0.5 together. Each Dependabot PR (#111, #102, #133) fails alone at `npm ci` because the packages peer-pin each other to the exact same vitest version. Vitest 5 ships browser-mode DOM matcher types in which toHaveTextContent no longer accepts a RegExp. They shadow @testing-library/jest-dom's signature and broke `astro check` on five existing assertions, although the jsdom tests still run jest-dom's matcher. Re-declare jest-dom's signature in src/test/vitest-matchers.d.ts instead of changing tests. 5.0.5 was published 2026-10-15, past the 7-day cooldown; 5.1.0 (2026-11-02) is not. Supersedes #111, #102 and #133. Refs: #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jvcorredor
added a commit
that referenced
this pull request
Nov 3, 2026
Supersedes #111, #102 and #133 (left open for you to close). ## Summary ```diff devDependencies - vitest ^4.1.1 - @vitest/browser-playwright ^4.0.14 - @vitest/coverage-v8 ^4.1.1 + vitest ^5.0.5 (locked 5.0.5) + @vitest/browser-playwright ^5.0.5 (locked 5.0.5) + @vitest/coverage-v8 ^5.0.5 (locked 5.0.5) src/test/ +└── vitest-matchers.d.ts # types only: restores jest-dom's toHaveTextContent(RegExp) ``` - Why each Dependabot PR failed alone: `@vitest/browser-playwright` and `@vitest/coverage-v8` peer-pin the exact same `vitest` version, so bumping one gives `npm ci` an `ERESOLVE`. They have to move together. - Vitest 5 ships browser-mode DOM matcher types (via `vitest/config` in `vitest.config.ts`) where `toHaveTextContent(text?: string | number)` rejects RegExp. They shadow `@testing-library/jest-dom`, so `astro check` failed on 5 existing assertions. The jsdom tests still run jest-dom's matcher at runtime. No test was changed: `src/test/vitest-matchers.d.ts` re-declares jest-dom's signature on `Matchers` (the `Assertion` type parameter lists disagree across libs). Drop it if tests move to Vitest browser mode, where `toMatchTextContent` replaces the RegExp form. - Pinned to 5.0.5, published 2026-10-15 (past the 7-day cooldown). 5.1.0 was published 2026-11-02, so the lock does not take it; transitive `tinybench` is pinned to 6.2.2 (6.2.3 is inside the cooldown), and every package the lock changes vs main is >= 7 days old. - `vitest` 5 pulls in `@vitest/ui` (needed by the `test:ui` script anyway) and the lock dedupes some transitive packages. ## Evidence - **Before:** `npm ci` on #111/#102/#133 fails with `ERESOLVE` (peer `vitest@"4.1.12"` vs `5.0.5`). With only the version bump, `npm run check` reports 5 errors (`ts(2345)` RegExp not assignable to `string | number | undefined` in `BooksList`, `EventForm`, `EventsList` tests). **After:** every step of `.github/workflows/ci.yml` run locally on Node 24: - `npm ci`, `npm run lint`, `npm run format:check`: clean - `npm run check`: 0 errors - `npm run test:run`: 13 files, 249 tests pass (same as main on 4.1.12) - `npm run test:coverage`: identical to main (93.54 / 90.81 / 84.21 / 93.27) - `npm run test:pb`: 16/16; `make -C backend pocketbase`, `npm run build`, `npm run build-storybook`: succeed - `scripts/test-agent-hooks.sh`: pass - No browser-mode (Playwright) test project exists in this repo; the only vitest project is jsdom, so none ran. ## Merge Danger **Door:** two-way Revert the commit to return to 4.1.12. **Blast Radius:** dev tooling Test, coverage and storybook tooling only. No runtime or production code changes. Refs: #117 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Superseded by #140, which moves vitest, @vitest/browser-playwright and @vitest/coverage-v8 to 5.0.5 together. Their peer pins mean none of them can move alone. |
This was referenced Nov 3, 2026
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.
Bumps @vitest/coverage-v8 from 4.1.12 to 5.0.5.
Release notes
Sourced from @vitest/coverage-v8's releases.
... (truncated)
Commits
7a825dbchore: release v5.0.5 (#11609)6a11cf6chore: release v5.0.4 (#11554)2297d93fix(coverage): v8 browser memory leak between test files (#11466)c74e099fix(deps): update all non-major dependencies (#11167)33cadeachore: release v5.0.3 (#11409)a029e76chore: migrate to oxc (#11367)428e2e5chore: release v5.0.2 (#11357)03630a5chore: release v5.0.1 (#11275)f441c6fchore: release v5.0.0 (#11130)c4473e4fix(coverage): prevent crash on/@fs/prepended virtual files (#11119)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)