Skip to content

Missing type for RenderHookOptions #534

Closed
@jonkoops

Description

@jonkoops
  • react-hooks-testing-library version: 4.0.0

Relevant code or config:

import { RenderHookOptions } from '@testing-library/react-hooks'

What you did:

Import the RenderHookOptions type.

What happened:

The RenderHookOptions type was not found.

Reproduction:

See code.

Problem description:

Since the library has been re-written in TypeScript it no longer exports the RenderHookOptions as a seperate type. This is causing our CI to fail: Amsterdam/amsterdam-styled-components#1469

Suggested solution:

Restore the RenderHookOptions type so it can be used again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions