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

Function snapshot

graph-ui/src/settings/ConfigPanel.test.tsx:13–13  ·  view source on GitHub ↗
(change: Partial<ConfigSetting> = {})

Source from the content-addressed store, hash-verified

11const setting: ConfigSetting = { key: 'CBM_WORKERS', label: 'Index workers', description: 'Parallel workers.', category: 'resources', type: 'integer', minimum: 1, maximum: 256,
12 defaultValue: null, value: '4', override: null, effective: '4', source: 'environment', applyMode: 'restart', pendingRestart: false, editable: true };
13const snapshot = (change: Partial<ConfigSetting> = {}): ConfigSnapshot => ({ revision: '1', settings: [{ ...setting, ...change }] });
14let service: { configuration: ReturnType<typeof vi.fn<ConfigService['configuration']>>; saveConfiguration: ReturnType<typeof vi.fn<ConfigService['saveConfiguration']>> };
15const close = vi.fn<() => void>(), model = vi.fn<() => void>(), display = vi.fn<(next: GraphDisplaySettings) => void>();
16beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected