API Reference / @gtkx/testing / RenderHookOptions
Type Alias: RenderHookOptions<Props>
RenderHookOptions<
Props> =object& (undefinedextendsProps?object:object)
Defined in: packages/testing/src/types.ts:242
Options for renderHook: an optional wrapper and the initial props (required unless the props type permits undefined).
Type Parameters
Props
Props
Type Declaration
wrapper?
optionalwrapper?:WrapperComponent
Component wrapped around the one calling the hook, such as a context provider.