Repository navigation
remove unused @testing-library/react dependency - #2514
Merged
grzanka merged 2 commits intoNov 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The change is a straightforward cleanup that removes an unused dependency and updates the lockfile accordingly, with no active review issues indicated.
No open issues 🎉
What changed in this PR
Removes the unused @testing-library/react dependency from the project to reduce dependency surface and maintenance noise.
Changes:
- Drops
@testing-library/reactfrompackage.json. - Updates
package-lock.jsonto remove the corresponding locked entries while keeping required related packages intact.
| File | Description |
|---|---|
| package.json | Removes @testing-library/react from the declared dependencies. |
| package-lock.json | Updates the lockfile to delete entries related to @testing-library/react. |
Review effort: Balanced
Contributor
|
@dependabot rebase |
…testing-libraryreact-dependency # Conflicts: # package-lock.json # package.json
grzanka
approved these changes
Nov 13, 2026
grzanka
deleted the
2503-remove-unused-testing-libraryreact-dependency
branch
November 13, 2026 17:54
DariuszRozmus
pushed a commit
that referenced
this pull request
Nov 14, 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.
Closes #2503. Part of #2481.
@testing-library/reactcame with the Create React App template. Its only user was the template testsrc/App.test.tsx, where therender()call was already commented out; the file was deleted in #951. No test has imported it since: the suite consists of Jest unit tests and Selenium E2E tests, and none of them renders components with React Testing Library.Changes
npm uninstall @testing-library/react(with@testing-library/jest-domand@testing-library/user-eventalready removed in remove unused @testing-library/jest-dom dependency #2517 and remove unused @testing-library/user-event dependency #2515, this also removes the now unused@testing-library/dom,aria-query,@types/aria-query,dom-accessibility-apiandlz-stringfrom the lockfile)Documentation
Verified against master