Skip to content

fix: Ensure renderHook options extend options for render#1308

Merged
eps1lon merged 1 commit intotesting-library:mainfrom
eps1lon:fix-renderhook-types
Apr 23, 2024
Merged

fix: Ensure renderHook options extend options for render#1308
eps1lon merged 1 commit intotesting-library:mainfrom
eps1lon:fix-renderhook-types

Conversation

@eps1lon
Copy link
Member

@eps1lon eps1lon commented Apr 23, 2024

Fixes #1307

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6260345:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon merged commit 48282c2 into testing-library:main Apr 23, 2024
@eps1lon eps1lon deleted the fix-renderhook-types branch April 23, 2024 15:46
izzieSD pushed a commit to Izzie132/legit that referenced this pull request Feb 19, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | devDependencies | major | [`^14.1.2` -> `^15.0.0`](https://renovatebot.com/diffs/npm/@testing-library%2freact/14.2.1/15.0.5) |

---

### Release Notes

<details>
<summary>testing-library/react-testing-library (@&#8203;testing-library/react)</summary>

### [`v15.0.5`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.5)

[Compare Source](testing-library/react-testing-library@v15.0.4...v15.0.5)

##### Bug Fixes

-   Stop restricting `container` option based on `hydrate` ([#&#8203;1313](testing-library/react-testing-library#1313)) ([d143f46](testing-library/react-testing-library@d143f46))

### [`v15.0.4`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.4)

[Compare Source](testing-library/react-testing-library@v15.0.3...v15.0.4)

##### Bug Fixes

-   Ensure `renderHook` options extend options for `render` ([#&#8203;1308](testing-library/react-testing-library#1308)) ([48282c2](testing-library/react-testing-library@48282c2))

### [`v15.0.3`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.3)

[Compare Source](testing-library/react-testing-library@v15.0.2...v15.0.3)

##### Bug Fixes

-   Don't raise TypeScript errors when hydating `document` ([#&#8203;1304](testing-library/react-testing-library#1304)) ([067d0c6](testing-library/react-testing-library@067d0c6))

### [`v15.0.2`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.2)

[Compare Source](testing-library/react-testing-library@v15.0.1...v15.0.2)

##### Bug Fixes

-   Improve `legacyRoot` error message ([#&#8203;1301](testing-library/react-testing-library#1301)) ([c63b873](testing-library/react-testing-library@c63b873))

### [`v15.0.1`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.1)

[Compare Source](testing-library/react-testing-library@v15.0.0...v15.0.1)

##### Bug Fixes

-   Stop using nullish coalescing ([#&#8203;1299](testing-library/react-testing-library#1299)) ([1645d21](testing-library/react-testing-library@1645d21))

### [`v15.0.0`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.0)

[Compare Source](testing-library/react-testing-library@v14.3.1...v15.0.0)

##### Relea...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression: Options not available in renderHook

2 participants