()
| 85 | |
| 86 | // Get a fresh database path for isolated tests |
| 87 | function getFreshDbPath(): string { |
| 88 | testCounter++; |
| 89 | return join(testDir, `test-${testCounter}.sqlite`); |
| 90 | } |
| 91 | |
| 92 | // Create an isolated test environment (db + config dir) |
| 93 | async function createIsolatedTestEnv(prefix: string): Promise<{ dbPath: string; configDir: string }> { |