* True for WSL Windows-drive mounts like `/mnt/c` or `/mnt/d/project`. * Deliberately matches only single-letter drive mounts, so genuinely fast * Linux mounts such as `/mnt/wsl/...` are not flagged.
(projectRoot: string)
| 54 | * Linux mounts such as `/mnt/wsl/...` are not flagged. |
| 55 | */ |
| 56 | function isWindowsDriveMount(projectRoot: string): boolean { |
| 57 | return /^\/mnt\/[a-z](\/|$)/i.test(normalizePath(projectRoot)); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Inputs that can be overridden in tests so the decision is deterministic |
no test coverage detected