mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 21:40:43 +00:00
feat(plugins): move install records to managed ledger
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
updateNpmInstalledHookPacks,
|
||||
updateNpmInstalledPlugins,
|
||||
writeConfigFile,
|
||||
writePersistedPluginInstallLedger,
|
||||
} from "./plugins-cli-test-helpers.js";
|
||||
|
||||
function createTrackedPluginConfig(params: {
|
||||
@@ -210,9 +211,10 @@ describe("plugins cli update", () => {
|
||||
dryRun: false,
|
||||
}),
|
||||
);
|
||||
expect(writeConfigFile).toHaveBeenCalledWith(nextConfig);
|
||||
expect(writePersistedPluginInstallLedger).toHaveBeenCalledWith(nextConfig.plugins?.installs);
|
||||
expect(writeConfigFile).toHaveBeenCalledWith({});
|
||||
expect(refreshPluginRegistry).toHaveBeenCalledWith({
|
||||
config: nextConfig,
|
||||
config: {},
|
||||
reason: "source-changed",
|
||||
});
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user