test: group remaining suite cleanups

This commit is contained in:
Peter Steinberger
2026-02-21 21:43:24 +00:00
parent 5c8f0b5a77
commit 861718e4dc
32 changed files with 870 additions and 922 deletions

View File

@@ -90,19 +90,15 @@ describe("resolveShellFromPath", () => {
}
});
if (isWin) {
it("returns undefined on Windows for missing PATH entries in this test harness", () => {
process.env.PATH = "";
expect(resolveShellFromPath("bash")).toBeUndefined();
});
return;
}
it("returns undefined when PATH is empty", () => {
process.env.PATH = "";
expect(resolveShellFromPath("bash")).toBeUndefined();
});
if (isWin) {
return;
}
it("returns the first executable match from PATH", () => {
const notExecutable = createTempCommandDir(tempDirs, [{ name: "bash", executable: false }]);
const executable = createTempCommandDir(tempDirs, [{ name: "bash", executable: true }]);