Merge branch 'feat/plugin-mgmt-3-settings' into feat/plugin-mgmt-4-web

This commit is contained in:
Yichen Jiang committed 2026-09-08 16:28:49 +08:00
commit ec0504dc58
1 file changed
+3 -1
@@ -165,7 +165,9 @@ describe('PluginInventoryGateway', () => {
const stack: ComposedStack = {
patches: [], layers: [], owners: new Map(), conflicts: [], skippedBundles: [], userDisabledRowIds: new Set([groupId]),
}
await ctx.plugin(ProfileRuntime, { profile, stack, loadProfile: () => profile, compose: () => stack, rootEntry: () => undefined })
await ctx.plugin(ProfileRuntime, {
profile, stack, installAnchor: '/app/package.json', loadProfile: () => profile, compose: () => stack, rootEntry: () => undefined,
})
await ctx.loader.update(groupId, { disabled: true })
const listed = (await inventory.list()).entries.find(entry => entry.entryId === child?.id)
expect(listed).toMatchObject({ enabled: false, disabledBy: 'user' })