fix(update): silence npm deprecation/funding noise

This commit is contained in:
Peter Steinberger
2026-02-19 18:19:10 +01:00
parent e741a53919
commit bf8117ad32
2 changed files with 6 additions and 5 deletions

View File

@@ -361,16 +361,16 @@ describe("runGatewayUpdate", () => {
it.each([
{
title: "updates global npm installs when detected",
expectedInstallCommand: "npm i -g openclaw@latest",
expectedInstallCommand: "npm i -g openclaw@latest --no-fund --no-audit --loglevel=error",
},
{
title: "uses update channel for global npm installs when tag is omitted",
expectedInstallCommand: "npm i -g openclaw@beta",
expectedInstallCommand: "npm i -g openclaw@beta --no-fund --no-audit --loglevel=error",
channel: "beta" as const,
},
{
title: "updates global npm installs with tag override",
expectedInstallCommand: "npm i -g openclaw@beta",
expectedInstallCommand: "npm i -g openclaw@beta --no-fund --no-audit --loglevel=error",
tag: "beta",
},
])("$title", async ({ expectedInstallCommand, channel, tag }) => {
@@ -406,7 +406,7 @@ describe("runGatewayUpdate", () => {
if (key === "pnpm root -g") {
return { stdout: "", stderr: "", code: 1 };
}
if (key === "npm i -g openclaw@latest") {
if (key === "npm i -g openclaw@latest --no-fund --no-audit --loglevel=error") {
stalePresentAtInstall = await pathExists(staleDir);
return { stdout: "ok", stderr: "", code: 0 };
}