Skip to main content
Module

x/fresh_testing_library/mod.ts>RenderHookOptions

Utilities for testing fresh apps
Go to Latest
interface RenderHookOptions
import { type RenderHookOptions } from "https://deno.land/x/fresh_testing_library@0.8.0/mod.ts";

Properties

optional
initialProps: Props

The argument passed to the renderHook callback. Can be useful if you plan to use the rerender utility to change the values passed to your hook.

optional
wrapper: ComponentType<{ children: Element; }>

Pass a React Component as the wrapper option to have it rendered around the inner element. This is most useful for creating reusable custom render functions for common data providers. See setup for examples.