MCPcopy Create free account
hub / github.com/anus-dev/ANUS / TestHarness

Function TestHarness

packages/cli/src/ui/contexts/SessionContext.test.tsx:25–32  ·  view source on GitHub ↗
({
  contextRef,
}: {
  contextRef: MutableRefObject<ReturnType<typeof useSessionStats> | undefined>;
})

Source from the content-addressed store, hash-verified

23 * and assert against its state directly in our tests.
24 */
25const TestHarness = ({
26 contextRef,
27}: {
28 contextRef: MutableRefObject<ReturnType<typeof useSessionStats> | undefined>;
29}) => {
30 contextRef.current = useSessionStats();
31 return null;
32};
33
34describe('SessionStatsContext', () => {
35 it('should provide the correct initial state', () => {

Callers

nothing calls this directly

Calls 1

useSessionStatsFunction · 0.85

Tested by

no test coverage detected