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

Function source

graph-ui/src/system/IndexesPanel.test.tsx:13–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11const configuration = (value = 'true', effective = value, revision = 'r1'): ConfigSnapshot => ({ revision, settings: [{ key: 'watcher_enabled', label: 'Background watcher', description: '', category: 'indexing', type: 'boolean', defaultValue: 'true', value, override: value, effective, source: 'override', applyMode: 'restart', pendingRestart: value !== effective, editable: true }] });
12const healthy = (watchRegistered = true, watcherRunning = true) => readHealth({ status: 'healthy', nodes: 42, edges: 73, indexed_at: '2026-09-30T12:00:00Z', watch_registered: watchRegistered, watcher_running: watcherRunning });
13const source = () => ({ projectHealth: vi.fn<(name: string) => Promise<ProjectHealth>>().mockResolvedValue(healthy()), configuration: vi.fn().mockResolvedValue(configuration()), saveConfiguration: vi.fn<(revision: string, changes: Record<string, string | null>) => Promise<ConfigSnapshot>>() });
14let api: ReturnType<typeof source>;
15let listProjects: ReturnType<typeof vi.fn<() => Promise<ProjectEntry[]>>>;
16const toggle = () => container.querySelector<HTMLInputElement>('[role="switch"]')!;

Callers 1

Calls 2

healthyFunction · 0.85
configurationFunction · 0.85

Tested by

no test coverage detected