Skip to content

API Reference / @gtkx/testing / RenderHookOptions

Type Alias: RenderHookOptions<Props> ​

RenderHookOptions<Props> = object & undefined extends Props ? object : object

Defined in: packages/testing/src/types.ts:237

Options for renderHook: an optional wrapper and the initial props (required unless the props type permits undefined).

Type Declaration ​

wrapper? ​

optional wrapper?: WrapperComponent

Component wrapped around the one calling the hook, such as a context provider.

Type Parameters ​

Props ​

Props