| 3 | describe("getBashPathForPlatform (Windows)", () => { |
| 4 | it("skips WSL launcher when it is first in PATH", () => { |
| 5 | const execSyncFn = (command: string) => { |
| 6 | if (command === "where git") { |
| 7 | throw new Error("git not in PATH"); |
| 8 | } |
| 9 | |
| 10 | if (command === "where bash") { |
| 11 | return ["C:\\Windows\\System32\\bash.exe", "D:\\Custom\\Git\\usr\\bin\\bash.exe"].join( |
| 12 | "\r\n" |
| 13 | ); |
| 14 | } |
| 15 | |
| 16 | throw new Error(`unexpected command: ${command}`); |
| 17 | }; |
| 18 | |
| 19 | const existing = new Set<string>([ |
| 20 | "C:\\Windows\\System32\\bash.exe", |