@@ -180,11 +180,12 @@ describe("persistPluginInstall", () => {
|
180 | 180 | config: enabledConfig, |
181 | 181 | onlyPluginIds: ["legacy-memory"], |
182 | 182 | }); |
183 | | -expect(loadPluginManifestRegistry).toHaveBeenCalledWith({ |
184 | | -config: enabledConfig, |
185 | | -includeDisabled: true, |
186 | | -pluginIds: ["legacy-memory"], |
187 | | -}); |
| 183 | +expect(loadPluginManifestRegistry).toHaveBeenCalledWith( |
| 184 | +expect.objectContaining({ |
| 185 | +config: enabledConfig, |
| 186 | +installRecords: {}, |
| 187 | +}), |
| 188 | +); |
188 | 189 | expect(next.plugins?.entries?.["legacy-memory-a"]?.enabled).toBe(true); |
189 | 190 | expect(next.plugins?.slots?.memory).toBe("legacy-memory"); |
190 | 191 | }); |
@@ -250,11 +251,12 @@ describe("persistPluginInstall", () => {
|
250 | 251 | }); |
251 | 252 | |
252 | 253 | expect(buildPluginDiagnosticsReport).not.toHaveBeenCalled(); |
253 | | -expect(loadPluginManifestRegistry).toHaveBeenCalledWith({ |
254 | | -config: enabledConfig, |
255 | | -includeDisabled: true, |
256 | | -pluginIds: ["memory-b"], |
257 | | -}); |
| 254 | +expect(loadPluginManifestRegistry).toHaveBeenCalledWith( |
| 255 | +expect.objectContaining({ |
| 256 | +config: enabledConfig, |
| 257 | +installRecords: {}, |
| 258 | +}), |
| 259 | +); |
258 | 260 | expect(next.plugins?.entries?.["legacy-memory-a"]?.enabled).toBe(true); |
259 | 261 | expect(next.plugins?.slots?.memory).toBe("memory-b"); |
260 | 262 | }); |
@@ -306,11 +308,12 @@ describe("persistPluginInstall", () => {
|
306 | 308 | config: enabledConfig, |
307 | 309 | onlyPluginIds: ["plain"], |
308 | 310 | }); |
309 | | -expect(loadPluginManifestRegistry).toHaveBeenCalledWith({ |
310 | | -config: enabledConfig, |
311 | | -includeDisabled: true, |
312 | | -pluginIds: ["plain"], |
313 | | -}); |
| 311 | +expect(loadPluginManifestRegistry).toHaveBeenCalledWith( |
| 312 | +expect.objectContaining({ |
| 313 | +config: enabledConfig, |
| 314 | +installRecords: {}, |
| 315 | +}), |
| 316 | +); |
314 | 317 | expect(next).toEqual(enabledConfig); |
315 | 318 | }); |
316 | 319 | |
|