React-hooks-testing-library: Missing type for RenderHookOptions

Created on 12 Jan 2021  路  4Comments  路  Source: testing-library/react-hooks-testing-library

  • 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: https://github.com/Amsterdam/amsterdam-styled-components/pull/1469

Suggested solution:

Restore the RenderHookOptions type so it can be used again.

bug released released on @beta

All 4 comments

This is solved in v5.0.0-beta.9 but it also does seem to be cropping up more and I appreciate some people don't want to use a beta library.

:tada: This issue has been resolved in version 4.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Thanks for the quick response @joshuaellis :+1:

:tada: This issue has been resolved in version 5.0.0-beta.11 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahnkee picture ahnkee  路  4Comments

jrschumacher picture jrschumacher  路  7Comments

samuherek picture samuherek  路  3Comments

Schwartz10 picture Schwartz10  路  4Comments

matthieuh picture matthieuh  路  4Comments