Closed icatalina closed 2 months ago
@testing-library/react
import { renderHook } from '@testing-library/react'; renderHook(() => null, { wrapper: () => null });
Trying to use a wrapper on renderHook.
renderHook
https://stackblitz.com/edit/rtl-template-emaqfx?file=src%2FApp.test.tsx
Only initialProps is available when using renderHook
initialProps
🤷
cc: @eps1lon
Thank you for the report. Should be fixed with @testing-library/react@15.0.4
@testing-library/react@15.0.4
thanks heaps for the prompt response 🙇♀️
@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:
🤷