(value = 'true', effective = value, revision = 'r1')
| 9 | |
| 10 | let container: HTMLDivElement, root: Root; |
| 11 | const 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 }] }); |
| 12 | const 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 }); |
| 13 | const 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>>() }); |
| 14 | let api: ReturnType<typeof source>; |
no outgoing calls
no test coverage detected