atomico/test-hooks
Build test to custom hooks created with Atomico with an isolated instance and predictable
import { createHooks } from "atomico/test-hooks";createHooks
Instance
const hooks = createHooks(opcionalRender, opcionalHost);Return of the instance
interface Hooks {
load<T>(callback: () => T): T;
clearEffect(unmounted?: boolean): () => ()=> void;
}Example:
Last updated
Was this helpful?
