test: align plugin persist metadata fixture

This commit is contained in:
Peter Steinberger
2026-05-02 09:13:32 +01:00
parent 7199e730a7
commit 06110de6f6

View File

@@ -180,11 +180,12 @@ describe("persistPluginInstall", () => {
config: enabledConfig,
onlyPluginIds: ["legacy-memory"],
});
expect(loadPluginManifestRegistry).toHaveBeenCalledWith({
config: enabledConfig,
includeDisabled: true,
pluginIds: ["legacy-memory"],
});
expect(loadPluginManifestRegistry).toHaveBeenCalledWith(
expect.objectContaining({
config: enabledConfig,
installRecords: {},
}),
);
expect(next.plugins?.entries?.["legacy-memory-a"]?.enabled).toBe(true);
expect(next.plugins?.slots?.memory).toBe("legacy-memory");
});
@@ -250,11 +251,12 @@ describe("persistPluginInstall", () => {
});
expect(buildPluginDiagnosticsReport).not.toHaveBeenCalled();
expect(loadPluginManifestRegistry).toHaveBeenCalledWith({
config: enabledConfig,
includeDisabled: true,
pluginIds: ["memory-b"],
});
expect(loadPluginManifestRegistry).toHaveBeenCalledWith(
expect.objectContaining({
config: enabledConfig,
installRecords: {},
}),
);
expect(next.plugins?.entries?.["legacy-memory-a"]?.enabled).toBe(true);
expect(next.plugins?.slots?.memory).toBe("memory-b");
});
@@ -306,11 +308,12 @@ describe("persistPluginInstall", () => {
config: enabledConfig,
onlyPluginIds: ["plain"],
});
expect(loadPluginManifestRegistry).toHaveBeenCalledWith({
config: enabledConfig,
includeDisabled: true,
pluginIds: ["plain"],
});
expect(loadPluginManifestRegistry).toHaveBeenCalledWith(
expect.objectContaining({
config: enabledConfig,
installRecords: {},
}),
);
expect(next).toEqual(enabledConfig);
});