test(web): resolve every selected bundle's dependencies in the e2e scaffold

Like the launcher, the scaffold now resolves the dependencies of each bundle the profile selects, not only the extra install anchors, so a plugin bundle's row packages load in Web E2E. Feishu (#5771) and WeCom (#6251) carry the same change.
This commit is contained in:
gengruilin committed 2026-10-18 19:46:05 +08:00
1 parent ebf0ea51ab
commit bdcb4464d1
1 file changed
+5 -1
+5 -1
View File
@@ -823,7 +823,11 @@ export async function launchWebScaffold(options: LaunchOptions = {}): Promise<We
throw new Error(`web e2e scaffold: the web app requested exit ${String(code)} with no arguments to reject`)
},
})
const resolution = await createRuntimeResolution(resolutionOptions)
// Like the launcher, resolve the dependencies of every selected bundle, not only the extra install anchors.
const selectedLayers = loadProfileDirectory('dsh', profileDir, INSTALL_ANCHOR).layers
const resolution = await createRuntimeResolution({
...resolutionOptions, profile: { ...profile, layers: [...profile.layers, ...selectedLayers] },
})
await ctx.plugin(PluginPackages, {
resolution,
})