| 16 | // CodeGraph is pulled in only when a tool actually opens a project. require() is |
| 17 | // sync + cached (CommonJS build). |
| 18 | const loadCodeGraph = (): typeof import('../index').default => |
| 19 | loadCodeGraphForTests ?? (require('../index') as typeof import('../index')).default; |
| 20 | // Test seam (same pattern as the watcher's `__setFsWatchForTests`): vitest's |
| 21 | // module transform can't service the lazy `require('../index')` above, so |
| 22 | // in-process tests that exercise a genuine cross-project open (an explicit |