MCPcopy Create free account
hub / github.com/bytebase/bytebase / Harness

Function Harness

frontend/src/react/hooks/useColumnWidths.test.tsx:18–28  ·  view source on GitHub ↗
({
  columns,
  handleRef,
}: {
  columns: Column[];
  handleRef: { current: Handle | null };
})

Source from the content-addressed store, hash-verified

16type Handle = ReturnType<typeof useColumnWidths<Column>>;
17
18function Harness({
19 columns,
20 handleRef,
21}: {
22 columns: Column[];
23 handleRef: { current: Handle | null };
24}) {
25 const result = useColumnWidths(columns);
26 handleRef.current = result;
27 return null;
28}
29
30let container: HTMLDivElement;
31let root: Root;

Callers

nothing calls this directly

Calls 1

useColumnWidthsFunction · 0.90

Tested by

no test coverage detected