An indexed project, closed again.
()
| 60 | |
| 61 | /** An indexed project, closed again. */ |
| 62 | async function indexedProject(): Promise<{ root: string; dbPath: string }> { |
| 63 | const root = tempDir(); |
| 64 | fs.writeFileSync(path.join(root, 'a.ts'), 'export function alpha(): number { return 1; }\n'); |
| 65 | (await CodeGraph.init(root, { index: true })).close(); |
| 66 | return { root, dbPath: getDatabasePath(root) }; |
| 67 | } |
| 68 | |
| 69 | /** A node:sqlite error as SQLite reports it. */ |
| 70 | function sqliteError(errcode: number, message: string): Error { |
no test coverage detected