(inputPath: string)
| 21 | |
| 22 | // Extract the pure expandPath logic for testing |
| 23 | const expandPath = (inputPath: string): string => { |
| 24 | if (inputPath.startsWith('~')) { |
| 25 | return path.join(os.homedir(), inputPath.slice(1)) |
| 26 | } |
| 27 | return inputPath |
| 28 | } |
| 29 | |
| 30 | // Extract the path validation logic for testing |
| 31 | const isValidDirectoryPath = (inputPath: string): boolean => { |
no outgoing calls
no test coverage detected