| 11 | const 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 }; |
| 13 | const snapshot = (change: Partial<ConfigSetting> = {}): ConfigSnapshot => ({ revision: '1', settings: [{ ...setting, ...change }] }); |
| 14 | let service: { configuration: ReturnType<typeof vi.fn<ConfigService['configuration']>>; saveConfiguration: ReturnType<typeof vi.fn<ConfigService['saveConfiguration']>> }; |
| 15 | const close = vi.fn<() => void>(), model = vi.fn<() => void>(), display = vi.fn<(next: GraphDisplaySettings) => void>(); |
| 16 | beforeEach(() => { |