From b2c2e9a6948fdc17bc925a0147f57087cbfe4190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E8=8B=8F=E6=B3=A2=20=28Super=20Zheng=29?= Date: Mon, 18 May 2026 11:13:07 +0800 Subject: [PATCH] test: fix environment sensitivity in resolveNpmCommandInvocation test --- test/openclaw-npm-release-check.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/openclaw-npm-release-check.test.ts b/test/openclaw-npm-release-check.test.ts index 2ac82c0ad26..df8a3e76232 100644 --- a/test/openclaw-npm-release-check.test.ts +++ b/test/openclaw-npm-release-check.test.ts @@ -306,7 +306,7 @@ describe("resolveNpmCommandInvocation", () => { }); it("uses the platform npm command when npm_execpath is missing", () => { - expect(resolveNpmCommandInvocation({ platform: "win32" })).toEqual({ + expect(resolveNpmCommandInvocation({ npmExecPath: "", platform: "win32" })).toEqual({ command: "npm.cmd", args: [], });