























@@ -1105,9 +1105,9 @@ describe("updateNpmInstalledPlugins", () => {
11051105expect(installPluginFromNpmSpecMock).toHaveBeenCalledTimes(1);
11061106expect(fs.existsSync(peerLinkPath("brave"))).toBe(true);
11071107expect(fs.existsSync(peerLinkPath("codex"))).toBe(true);
1108-expect(warnMessages).toContainEqual(
1109-expect.stringContaining('Could not repair openclaw peer link for "broken"'),
1110-);
1108+expect(warnMessages).toEqual([
1109+`Could not repair openclaw peer link for "broken" at ${brokenInstallPath}: Error: EEXIST: file already exists, mkdir '${path.join(brokenInstallPath, "node_modules")}'`,
1110+]);
11111111});
1112111211131113it("refreshes legacy npm install records before skipping unchanged artifacts", async () => {
@@ -1969,7 +1969,9 @@ describe("updateNpmInstalledPlugins", () => {
1969196919701970expect(npmInstallCall(0)?.spec).toBe("openclaw-codex-app-server@beta");
19711971expect(npmInstallCall(1)?.spec).toBe("openclaw-codex-app-server");
1972-expect(warnMessages).toEqual([expect.stringContaining("has no beta npm release")]);
1972+expect(warnMessages).toEqual([
1973+'Plugin "openclaw-codex-app-server" has no beta npm release for openclaw-codex-app-server@beta; falling back to openclaw-codex-app-server.',
1974+]);
19731975expectCodexAppServerInstallState({
19741976 result,
19751977spec: "openclaw-codex-app-server",
@@ -2009,7 +2011,9 @@ describe("updateNpmInstalledPlugins", () => {
2009201120102012expect(npmInstallCall(0)?.spec).toBe("openclaw-codex-app-server@beta");
20112013expect(npmInstallCall(1)?.spec).toBe("openclaw-codex-app-server");
2012-expect(warnMessages).toEqual([expect.stringContaining("failed beta npm update")]);
2014+expect(warnMessages).toEqual([
2015+'Plugin "openclaw-codex-app-server" failed beta npm update for openclaw-codex-app-server@beta; falling back to openclaw-codex-app-server.',
2016+]);
20132017expectCodexAppServerInstallState({
20142018 result,
20152019spec: "openclaw-codex-app-server",
@@ -2206,7 +2210,9 @@ describe("updateNpmInstalledPlugins", () => {
2206221022072211expect(clawHubInstallCall(0)?.spec).toBe("clawhub:demo@beta");
22082212expect(clawHubInstallCall(1)?.spec).toBe("clawhub:demo");
2209-expect(warnMessages).toEqual([expect.stringContaining("has no beta ClawHub release")]);
2213+expect(warnMessages).toEqual([
2214+'Plugin "demo" has no beta ClawHub release for clawhub:demo@beta; falling back to clawhub:demo.',
2215+]);
22102216expectRecordFields(result.config.plugins?.installs?.demo, {
22112217source: "clawhub",
22122218spec: "clawhub:demo",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。