test: clarify plugin install persist cache assertion

This commit is contained in:
Shakker
2026-05-08 10:21:53 +01:00
parent 2c0dac5851
commit 779122d761

View File

@@ -123,9 +123,9 @@ describe("persistPluginInstall", () => {
expect(next).toEqual(enabledConfig);
expect(refreshPluginRegistry).toHaveBeenCalled();
expect(
runtimeLogs.some((line) => line.includes("Plugin runtime cache invalidation failed")),
).toBe(true);
expect(runtimeLogs).toEqual(
expect.arrayContaining([expect.stringContaining("Plugin runtime cache invalidation failed")]),
);
});
it("removes a replaced managed install directory before refreshing the registry", async () => {