()
| 656 | /** Ensure the file exists on disk (writing the current cache if missing) and |
| 657 | * return its path. Used by the "Reveal config file" action. */ |
| 658 | export async function ensureConfigFile(): Promise<string> { |
| 659 | const file = getConfigFilePath() |
| 660 | try { |
| 661 | await fs.access(file) |
| 662 | } catch { |
| 663 | await setPortableConfig({}) |
| 664 | } |
| 665 | return file |
| 666 | } |
| 667 | |
| 668 | /** Test/teardown hook: stop the file watcher. */ |
| 669 | export async function stopAppConfigWatcher(): Promise<void> { |
no test coverage detected