()
| 12 | } from './config' |
| 13 | |
| 14 | function tempConfigPath(): string { |
| 15 | const baseDir = fs.existsSync('/private/tmp') ? '/private/tmp' : os.tmpdir() |
| 16 | const dir = fs.mkdtempSync(path.join(baseDir, 'chatlab-si-config-')) |
| 17 | return path.join(dir, 'ai', 'semantic-index-config.json') |
| 18 | } |
| 19 | |
| 20 | test('default config is enabled with no model preselected', () => { |
| 21 | const store = new SemanticIndexConfigStore(tempConfigPath()) |