Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function renderHook
import { renderHook } from "https://deno.land/x/fresh_testing_library@0.13.1/deps/testing-library.ts";

Allows you to render a hook within a test React component without having to create that component yourself.

Type Parameters

Result
Props

Parameters

render: (initialProps: Props) => Result
optional
options: RenderHookOptions<Props>