(env: NodeJS.ProcessEnv)
| 40 | |
| 41 | // Windows stores PATH under a case-insensitive key such as `Path`. |
| 42 | function getPathKey(env: NodeJS.ProcessEnv): string { |
| 43 | return Object.keys(env).find(key => key.toUpperCase() === 'PATH') ?? 'PATH'; |
| 44 | } |
| 45 | |
| 46 | function findOnPath( |
| 47 | command: string, |
no test coverage detected