fix(daemon): prefer current node and add macOS version manager paths to service PATH

This commit is contained in:
Yao
2026-02-17 01:27:49 +08:00
committed by Peter Steinberger
parent 1a8548df18
commit 3ec936d1b4
2 changed files with 5 additions and 2 deletions

View File

@@ -148,7 +148,9 @@ describe("getMinimalServicePathParts - Linux user directories", () => {
});
// fnm on macOS defaults to ~/Library/Application Support/fnm
const fnmIndex = result.indexOf("/Users/testuser/Library/Application Support/fnm/aliases/default/bin");
const fnmIndex = result.indexOf(
"/Users/testuser/Library/Application Support/fnm/aliases/default/bin",
);
const homebrewIndex = result.indexOf("/opt/homebrew/bin");
expect(fnmIndex).toBeGreaterThan(-1);