( rootPath: string, source: ProjectDescriptor['source'] = 'subdirectory' )
| 278 | } |
| 279 | |
| 280 | function registerDiscoveredProjectPath( |
| 281 | rootPath: string, |
| 282 | source: ProjectDescriptor['source'] = 'subdirectory' |
| 283 | ): void { |
| 284 | const resolvedRootPath = path.resolve(rootPath); |
| 285 | discoveredProjectPaths.set(normalizeRootKey(resolvedRootPath), resolvedRootPath); |
| 286 | rememberProjectPath(resolvedRootPath, source, { touch: false }); |
| 287 | } |
| 288 | |
| 289 | function clearDiscoveredProjectPaths(): void { |
| 290 | discoveredProjectPaths.clear(); |
no test coverage detected