Repository navigation
fix: declare vitest as an optional peer dependency - #733
Merged
Merged
Conversation
gnapse
enabled auto-merge (squash)
August 9, 2026 23:39
|
🎉 This PR is included in version 7.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
736-c41-2c1-e464fc974
pushed a commit
to Swiss-Armed-Forces/Loom
that referenced
this pull request
Sep 29, 2026
This MR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) | devDependencies | major | [`^6.9.1` → `^7.0.0`](https://renovatebot.com/diffs/npm/@testing-library%2fjest-dom/6.9.1/7.0.1) | [](https://securityscorecards.dev/viewer/?uri=github.com/testing-library/jest-dom) | --- ### Release Notes <details> <summary>testing-library/jest-dom (@​testing-library/jest-dom)</summary> ### [`v7.0.1`](https://github.com/testing-library/jest-dom/releases/tag/v7.0.1) [Compare Source](testing-library/jest-dom@v7.0.0...v7.0.1) ##### Bug Fixes - declare vitest as an optional peer dependency ([#​733](testing-library/jest-dom#733)) ([3782c78](testing-library/jest-dom@3782c78)) ### [`v7.0.0`](https://github.com/testing-library/jest-dom/releases/tag/v7.0.0) [Compare Source](testing-library/jest-dom@v6.10.0...v7.0.0) ##### Features - add toContainAnyBy\* and toContainOneBy\* query matchers ([1e39089](testing-library/jest-dom@1e39089)) ##### BREAKING CHANGES - [@​testing-library/dom](https://github.com/testing-library/dom) is now a required peer dependency. The minimum supported Node.js version is now 22. Repaired release for [#​731](testing-library/jest-dom#731) ### [`v6.10.0`](https://github.com/testing-library/jest-dom/releases/tag/v6.10.0) [Compare Source](testing-library/jest-dom@v6.9.1...v6.10.0) ##### Features - add toContainAnyBy\* and toContainOneBy\* query matchers ([#​731](testing-library/jest-dom#731)) ([cae44df](testing-library/jest-dom@cae44df)) </details> --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC41My4wIiwidXBkYXRlZEluVmVyIjoiNDQuMTE3LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlIl19--> See merge request swiss-armed-forces/cyber-command/cea/loom!778 Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
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.
What:
Declare
vitestas an optional peer dependency.Fixes #662.
Why:
The
@testing-library/jest-dom/vitestentry point importsvitestat runtime, butvitestis currently only a development dependency. Strict dependency layouts therefore cannot resolve the import fromjest-dom, even when the consuming project directly depends on both packages.This is reproducible with pnpm 11's global virtual store using
@testing-library/[email protected]and[email protected]:Keeping the peer optional avoids requiring or installing Vitest for Jest/Bun consumers. The range restores the previously supported
>= 0.32contract.How:
vitesttopeerDependenciesas>= 0.32.peerDependenciesMeta.A packed build was also installed into a fresh pnpm 11 project with
enableGlobalVirtualStore: true; pnpm bound the consumer's[email protected]tojest-dom, and the Vitest setup import passed withoutpackageExtensions.Checklist: