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

@@ -53,7 +53,8 @@ describe("resolvePreferredNodePath", () => {
throw new Error("missing");
});
const execFile = vi.fn()
const execFile = vi
.fn()
.mockResolvedValueOnce({ stdout: "18.0.0\n", stderr: "" }) // execPath too old
.mockResolvedValueOnce({ stdout: "22.12.0\n", stderr: "" }); // system node ok