MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / Fixture

Function Fixture

graph-ui/src/graph/useGraphBackgroundReset.test.tsx:13–17  ·  view source on GitHub ↗
({ reset }: { reset: () => void })

Source from the content-addressed store, hash-verified

11});
12afterEach(async () => { await act(async () => root.unmount()); host.remove(); });
13function Fixture({ reset }: { reset: () => void }) {
14 const { onPointerMissed, ...capture } = useGraphBackgroundReset(reset);
15 return <div {...capture}><canvas onClick={event => onPointerMissed(event.nativeEvent)} />
16 <button onClick={event => onPointerMissed(event.nativeEvent)}>Node label</button></div>;
17}
18async function setup() {
19 const reset = vi.fn(); await act(async () => root.render(<Fixture reset={reset} />));
20 return { reset, canvas: host.querySelector('canvas')!, label: host.querySelector('button')! };

Callers

nothing calls this directly

Calls 2

useGraphBackgroundResetFunction · 0.90
onPointerMissedFunction · 0.85

Tested by

no test coverage detected