()
| 35 | } |
| 36 | |
| 37 | function indexState() { |
| 38 | const cg = CodeGraph.openSync(root); |
| 39 | try { |
| 40 | return { stale: cg.isIndexStale(), files: cg.getStats().fileCount }; |
| 41 | } finally { cg.close(); } |
| 42 | } |
| 43 | |
| 44 | beforeEach(async () => { |
| 45 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-sync-stale-')); |
no test coverage detected