Documentation
¶
Overview ¶
Package hooks provides a first public hook-test harness for js/wasm tests.
It builds on testkit/render so custom hooks and hook-driven state flows can be exercised without writing a bespoke host component in every test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Harness ¶
type Harness[T any] struct{}
Harness wraps one rendered hook instance.
func RenderHook ¶
RenderHook requires a js/wasm test environment because interactive hooks only use the real runtime on browser-targeted builds.
Click to show internal directories.
Click to hide internal directories.