Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/react-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v16.0.1
Choose a base ref
...
head repository: testing-library/react-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 85ac2534a59abd38880011e77da4bb8c716eba84
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Dec 5, 2024

  1. feat: Add support for React 19 (#1367)

    eps1lon authored Dec 5, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    85ac253 View commit details
Showing with 11 additions and 7 deletions.
  1. +6 −6 package.json
  2. +5 −1 types/test.tsx
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -50,8 +50,8 @@
"devDependencies": {
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^5.11.6",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"chalk": "^4.1.2",
"dotenv-cli": "^4.0.0",
"jest-diff": "^29.7.0",
@@ -64,10 +64,10 @@
},
"peerDependencies": {
"@testing-library/dom": "^10.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"@types/react": "^18.0.0 || ^19.0.0",
"@types/react-dom": "^18.0.0 || ^19.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
6 changes: 5 additions & 1 deletion types/test.tsx
Original file line number Diff line number Diff line change
@@ -128,7 +128,11 @@ export function wrappedRender(
ui: React.ReactNode,
options?: pure.RenderOptions,
) {
const Wrapper = ({children}: {children: React.ReactNode}): JSX.Element => {
const Wrapper = ({
children,
}: {
children: React.ReactNode
}): React.JSX.Element => {
return <div>{children}</div>
}