From 0a41fc3ef862539101a4f4a7e8f05b69e0e8ea0f Mon Sep 17 00:00:00 2001 From: Shakker Date: Sat, 25 Apr 2026 23:44:20 +0100 Subject: [PATCH] test: expect plugin install index records on refresh --- src/cli/plugins-install-persist.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cli/plugins-install-persist.test.ts b/src/cli/plugins-install-persist.test.ts index c67c9538d1a..f7f686b379b 100644 --- a/src/cli/plugins-install-persist.test.ts +++ b/src/cli/plugins-install-persist.test.ts @@ -56,6 +56,13 @@ describe("persistPluginInstall", () => { expect(writeConfigFile).toHaveBeenCalledWith(enabledConfig); expect(refreshPluginRegistry).toHaveBeenCalledWith({ config: enabledConfig, + installRecords: { + alpha: expect.objectContaining({ + source: "npm", + spec: "alpha@1.0.0", + installPath: "/tmp/alpha", + }), + }, reason: "source-changed", }); });