(root: string)
| 179 | } |
| 180 | |
| 181 | async function staleIndex(root: string): Promise<Buffer> { |
| 182 | fs.writeFileSync(path.join(root, 'app.ts'), 'export function originalSymbol() {}\n'); |
| 183 | const cg = CodeGraph.openSync(root); |
| 184 | try { await cg.indexAll(); } finally { cg.close(); } |
| 185 | const before = fs.readFileSync(path.join(root, '.codegraph', 'codegraph.db')); |
| 186 | fs.writeFileSync(path.join(root, 'app.ts'), 'export function changedSymbol() {}\n'); |
| 187 | return before; |
| 188 | } |
| 189 | |
| 190 | describe('Shared MCP daemon (issue #411)', () => { |
| 191 | let tempDir: string; // the (possibly symlinked) path processes are spawned with |
no test coverage detected