(command: string, args: readonly string[])
| 77 | } |
| 78 | |
| 79 | function execFileText(command: string, args: readonly string[]): Promise<string> { |
| 80 | return new Promise((resolveOutput, reject) => { |
| 81 | execFile(command, [...args], { encoding: 'utf-8' }, (error, stdout) => { |
| 82 | if (error) { |
| 83 | reject(error); |
| 84 | return; |
| 85 | } |
| 86 | resolveOutput(stdout); |
| 87 | }); |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | function normalizePathForComparison(filePath: string, platform: NodeJS.Platform): string | null { |
| 92 | const trimmed = filePath.trim(); |
no test coverage detected