Skip to content

Commit 7e48002

Browse files
isaacroldanClaude Code
andcommitted
Simplify external identifier regression test
Co-authored-by: Claude Code <claude-code@anthropic.com>
1 parent 329e524 commit 7e48002

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

packages/app/src/cli/services/context/breakdown-extensions.test.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -587,20 +587,20 @@ describe('extensionsIdentifiersDeployBreakdown', () => {
587587
// Given
588588
const extensionsToConfirm = {
589589
validMatches: {EXTENSION_A: 'UUID_A'},
590-
dashboardOnlyExtensions: [REGISTRATION_DASHBOARD_A],
591-
extensionsToCreate: [EXTENSION_A_2],
590+
dashboardOnlyExtensions: [],
591+
extensionsToCreate: [],
592592
didMigrateDashboardExtensions: false,
593593
}
594594
vi.mocked(ensureExtensionsIds).mockResolvedValue(extensionsToConfirm)
595595
const remoteExtensionRegistrations = {
596596
app: {
597597
extensionRegistrations: [REGISTRATION_A],
598598
configurationRegistrations: [],
599-
dashboardManagedExtensionRegistrations: [REGISTRATION_DASHBOARD_A],
599+
dashboardManagedExtensionRegistrations: [],
600600
},
601601
}
602602
const activeAppVersion = {
603-
appModuleVersions: [MODULE_CONFIG_A, MODULE_DASHBOARD_A, MODULE_CLI_A_EXTERNAL_IDENTIFIER],
603+
appModuleVersions: [MODULE_CLI_A_EXTERNAL_IDENTIFIER],
604604
}
605605

606606
const developerPlatformClient: DeveloperPlatformClient = testDeveloperPlatformClient({
@@ -609,19 +609,16 @@ describe('extensionsIdentifiersDeployBreakdown', () => {
609609

610610
// When
611611
const result = await extensionsIdentifiersDeployBreakdown(
612-
await options({uiExtensions, developerPlatformClient, activeAppVersion}),
612+
await options({uiExtensions: [EXTENSION_A], developerPlatformClient, activeAppVersion}),
613613
)
614614

615615
// Then
616616
expect(result).toEqual({
617617
extensionIdentifiersBreakdown: {
618618
onlyRemote: [],
619-
toCreate: [buildExtensionBreakdownInfo('extension-a-2', 'test-ui-extension-uid')],
619+
toCreate: [],
620620
toUpdate: [],
621-
unchanged: [
622-
buildExtensionBreakdownInfo('EXTENSION_A', undefined),
623-
buildDashboardBreakdownInfo('Dashboard A'),
624-
],
621+
unchanged: [buildExtensionBreakdownInfo('EXTENSION_A', undefined)],
625622
},
626623
extensionsToConfirm,
627624
remoteExtensionsRegistrations: remoteExtensionRegistrations.app,

0 commit comments

Comments
 (0)