mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 08:07:53 +00:00
fix(channel): refresh wecom onboarding install
This commit is contained in:
committed by
Peter Steinberger
parent
dfead3198d
commit
f2cbe9ecc5
@@ -61,7 +61,7 @@ function cliInstallPath(pluginId: string): string {
|
||||
|
||||
function useProfileExtensionsDir(): string {
|
||||
process.env.OPENCLAW_STATE_DIR = PROFILE_STATE_ROOT;
|
||||
return path.join(PROFILE_STATE_ROOT, "extensions");
|
||||
return path.resolve(PROFILE_STATE_ROOT, "extensions");
|
||||
}
|
||||
|
||||
function createEnabledPluginConfig(pluginId: string): OpenClawConfig {
|
||||
@@ -850,10 +850,10 @@ describe("plugins cli install", () => {
|
||||
|
||||
await runPluginsCommand(["plugins", "install", "wecom"]);
|
||||
|
||||
expect(npmInstallCall().spec).toBe("@wecom/wecom-openclaw-plugin@2026.4.23");
|
||||
expect(npmInstallCall().spec).toBe("@wecom/wecom-openclaw-plugin@2026.5.7");
|
||||
expect(npmInstallCall().expectedPluginId).toBe("wecom-openclaw-plugin");
|
||||
expect(npmInstallCall().expectedIntegrity).toBe(
|
||||
"sha512-bnzfdIEEu1/LFvcdyjaTkyxt27w6c7dqhkPezU62OWaqmcdFsUGR3T55USK/O9pIKsNcnL1Tnu1pqKYCWHFgWQ==",
|
||||
"sha512-TCkP9as00WfEhgFWG8YL/rcmaWGIshAki2HQh83nTRccGfVBCoGjrEboTTqq3yDmK9koWTV11zi8u8A4dNtvug==",
|
||||
);
|
||||
expect(npmInstallCall().trustedSourceLinkedOfficialInstall).toBe(true);
|
||||
});
|
||||
@@ -896,15 +896,15 @@ describe("plugins cli install", () => {
|
||||
installHooksFromNpmSpec.mockResolvedValue({
|
||||
ok: false,
|
||||
error:
|
||||
"aborted: npm package integrity drift detected for @wecom/wecom-openclaw-plugin@2026.4.23",
|
||||
"aborted: npm package integrity drift detected for @wecom/wecom-openclaw-plugin@2026.5.7",
|
||||
});
|
||||
|
||||
await expect(runPluginsCommand(["plugins", "install", "wecom"])).rejects.toThrow("__exit__:1");
|
||||
|
||||
expect(npmInstallCall().trustedSourceLinkedOfficialInstall).toBe(true);
|
||||
expect(hookNpmInstallCall().spec).toBe("@wecom/wecom-openclaw-plugin@2026.4.23");
|
||||
expect(hookNpmInstallCall().spec).toBe("@wecom/wecom-openclaw-plugin@2026.5.7");
|
||||
expect(hookNpmInstallCall().expectedIntegrity).toBe(
|
||||
"sha512-bnzfdIEEu1/LFvcdyjaTkyxt27w6c7dqhkPezU62OWaqmcdFsUGR3T55USK/O9pIKsNcnL1Tnu1pqKYCWHFgWQ==",
|
||||
"sha512-TCkP9as00WfEhgFWG8YL/rcmaWGIshAki2HQh83nTRccGfVBCoGjrEboTTqq3yDmK9koWTV11zi8u8A4dNtvug==",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user