Uh oh!
There was an error while loading. Please reload this page.
chore(deps-dev): bump @testing-library/react from 13.0.0 to 15.0.5 - #19194
Conversation
| "devDependencies": { | ||
| "@testing-library/react": "^13.0.0", | ||
| "@testing-library/react": "^15.0.5", |
There was a problem hiding this comment.
Bug: The renderHook import in profiler.test.tsx uses the deprecated @testing-library/react-hooks package, which is incompatible with React 18 and will cause test failures.
Severity: CRITICAL
Suggested Fix
In packages/react/test/profiler.test.tsx, change the import from @testing-library/react-hooks to @testing-library/react. Then, remove the @testing-library/react-hooks dependency from package.json.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: packages/react/package.json#L48-L49
Potential issue: The PR upgrades `@testing-library/react`, which now includes the
`renderHook` function. However, the test file `packages/react/test/profiler.test.tsx`
continues to import `renderHook` from the old `@testing-library/react-hooks` package.
This package is still listed as a dev dependency but is incompatible with the project's
React 18 version. This mismatch will cause tests to fail at runtime, blocking the CI
pipeline and preventing the deployment of this change.
Did we get this right? 👍 / 👎 to inform future reviews.
Codecov Results 📊Generated by Codecov Action |
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 13.0.0 to 15.0.5. - [Release notes](https://github.com/testing-library/react-testing-library/releases) - [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md) - [Commits](testing-library/react-testing-library@v13.0.0...v15.0.5) --- updated-dependencies: - dependency-name: "@testing-library/react" dependency-version: 15.0.5 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
0955aac to
b4d1841CompareUh oh!
There was an error while loading. Please reload this page.
Bumps @testing-library/react from 13.0.0 to 15.0.5.
Release notes
Sourced from
@testing-library/react's releases.... (truncated)
Commits
f6a1677chore: Adjust tests to workaround 18.3.0 bug (#1315)d143f46fix: Stop restrictingcontaineroption based onhydrate(#1313)48282c2fix: EnsurerenderHookoptions extend options forrender(#1308)067d0c6fix: Don't raise TypeScript errors when hydatingdocument(#1304)c63b873fix: ImprovelegacyRooterror message (#1301)1645d21fix: Stop using nullish coalescing (#1299)787cb85Release: 15.0.0 (#1295)9c4a46dfeat: Add support for React 19 Canary (#1294)4e10ba3chore: change canary version to specific prefix (#1290)cf045b4chore: Update Codecov configuration to latest (#1289)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)