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