Răsfoiți Sursa

test(inventory): give the runtime its install anchor

The profile runtime takes installAnchor since the manager layer; the
user-disabled group test from the boot layer now supplies one.
Yichen Jiang 3 săptămâni în urmă
părinte
comite
22f92a8297
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      packages/host/plugin-inventory/tests/inventory.spec.ts

+ 3 - 1
packages/host/plugin-inventory/tests/inventory.spec.ts

@@ -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' })