We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renderHook
@testing-library/react
import { renderHook } from '@testing-library/react'; renderHook(() => null, { wrapper: () => null });
Trying to use a wrapper on renderHook.
https://stackblitz.com/edit/rtl-template-emaqfx?file=src%2FApp.test.tsx
Only initialProps is available when using renderHook
initialProps
🤷
The text was updated successfully, but these errors were encountered:
cc: @eps1lon
Sorry, something went wrong.
render
Thank you for the report. Should be fixed with @testing-library/[email protected]
@testing-library/[email protected]
thanks heaps for the prompt response 🙇♀️
Successfully merging a pull request may close this issue.
@testing-library/react
version: 15.0.3Relevant code or config:
What you did:
Trying to use a wrapper on
renderHook
.What happened:
Reproduction:
https://stackblitz.com/edit/rtl-template-emaqfx?file=src%2FApp.test.tsx
Problem description:
Only
initialProps
is available when usingrenderHook
Suggested solution:
🤷
The text was updated successfully, but these errors were encountered: