fix(ci): stabilize windows tests

This commit is contained in:
Peter Steinberger
2026-01-08 02:44:09 +00:00
parent f3f5e49d94
commit fbeb9e6775
10 changed files with 148 additions and 62 deletions

View File

@@ -49,11 +49,11 @@ describe("brew helpers", () => {
it("includes Linuxbrew bin/sbin in path candidates", () => {
const env: NodeJS.ProcessEnv = { HOMEBREW_PREFIX: "/custom/prefix" };
const dirs = resolveBrewPathDirs({ homeDir: "/home/test", env });
expect(dirs).toContain("/custom/prefix/bin");
expect(dirs).toContain("/custom/prefix/sbin");
expect(dirs).toContain(path.join("/custom/prefix", "bin"));
expect(dirs).toContain(path.join("/custom/prefix", "sbin"));
expect(dirs).toContain("/home/linuxbrew/.linuxbrew/bin");
expect(dirs).toContain("/home/linuxbrew/.linuxbrew/sbin");
expect(dirs).toContain("/home/test/.linuxbrew/bin");
expect(dirs).toContain("/home/test/.linuxbrew/sbin");
expect(dirs).toContain(path.join("/home/test", ".linuxbrew", "bin"));
expect(dirs).toContain(path.join("/home/test", ".linuxbrew", "sbin"));
});
});