fix: use platform-aware binary detection (where on Windows, which on Unix)

This commit is contained in:
YeonGyu-Kim
2026-02-07 18:48:14 +09:00
parent fdde204cf8
commit da363a447d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ describe("gh cli check", () => {
it("returns gh cli info structure", async () => {
const spawnSpy = spyOn(Bun, "spawn").mockImplementation((cmd) => {
if (Array.isArray(cmd) && cmd[0] === "which" && cmd[1] === "gh") {
if (Array.isArray(cmd) && (cmd[0] === "which" || cmd[0] === "where") && cmd[1] === "gh") {
return createProc({ stdout: "/usr/bin/gh\n" })
}