Regression: Types of property hydrate
are incompatible in renderHook
options
#1312
Labels
bug
Something isn't working
hydrate
are incompatible in renderHook
options
#1312
@testing-library/react
version: 15.0.4Relevant code or config:
What you did:
We use the
RenderHookOptions
type for a parameter in a helper function where we callrenderHook
.What happened:
Reproduction:
https://stackblitz.com/edit/rtl-template-22bvkk?file=src%2FApp.test.tsx
Problem description:
We can't simply use the
RenderHookOptions
type in our helper function. There are workaround to this problem but I thought that maybe this change was not intentional.The text was updated successfully, but these errors were encountered: