Skip to content
New issue

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

Regression: Options not available in renderHook #1307

Closed
icatalina opened this issue Apr 23, 2024 · 3 comments · Fixed by #1308
Closed

Regression: Options not available in renderHook #1307

icatalina opened this issue Apr 23, 2024 · 3 comments · Fixed by #1308

Comments

@icatalina
Copy link

  • @testing-library/react version: 15.0.3
  • Testing Framework and version: jest@29
  • DOM Environment: jsdom

Relevant code or config:

import { renderHook } from '@testing-library/react';

renderHook(() => null, { wrapper: () => null });

What you did:

Trying to use a wrapper on renderHook.

What happened:

image

Reproduction:

https://stackblitz.com/edit/rtl-template-emaqfx?file=src%2FApp.test.tsx

Problem description:

Only initialProps is available when using renderHook

Suggested solution:

🤷

@icatalina
Copy link
Author

cc: @eps1lon

@eps1lon
Copy link
Member

eps1lon commented Apr 23, 2024

Thank you for the report. Should be fixed with @testing-library/[email protected]

@icatalina
Copy link
Author

thanks heaps for the prompt response 🙇‍♀️

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 a pull request may close this issue.

2 participants