feat(plugins): move install records to managed ledger

This commit is contained in:
Vincent Koc
2026-04-25 11:36:42 -07:00
parent e473577eaa
commit 888448facc
31 changed files with 721 additions and 74 deletions

View File

@@ -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(