Skip to content

Regression: Options not available in renderHook #1307

Closed
@icatalina

Description

@icatalina
  • @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:

🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions