Skip to content

Conversation

@bargalya
Copy link

REP reference

when create an appHost in the testkit, passing a mock pact of an API requires also adding its package to the ignoredPackages, otherwise we get an error
Extension slot with key '${slotName}' already exists.

therefore, when we add a pact we also need to add the package to ignore (duplication, prone to errors)
this PR changes the createAppHostAndWaitForLoading function to filter out the packages that their apis is being mocked.

@bargalya bargalya requested review from ma-cohen and nircwix April 28, 2025 07:41

const filteredPackagesByPacts = (packages: EntryPointOrPackage[], pacts: PactAPIBase[]) => {
const pactAPINameSet = new Set(pacts.map(pact => pact.getAPIKey().name))
const flatPackages: EntryPoint[] = _.flatten(packages)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you rename to flatEntryPoints

@bargalya bargalya closed this Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants