test: fix environment sensitivity in resolveNpmCommandInvocation test

This commit is contained in:
郑苏波 (Super Zheng)
2026-05-18 11:13:07 +08:00
committed by George Zhang
parent 4399eee6e0
commit b2c2e9a694

View File

@@ -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: [],
});