@@ -537,7 +537,7 @@ describe('resolveConfigBundleComponentKeys', () => {
537537 } ) ;
538538
539539 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
540- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
540+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
541541 expect ( keys ) . toEqual ( [ 'arn:aws:bedrock-agentcore:us-east-1:123:runtime/rt-1' ] ) ;
542542 } ) ;
543543
@@ -550,7 +550,7 @@ describe('resolveConfigBundleComponentKeys', () => {
550550 } ) ;
551551
552552 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
553- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
553+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
554554 expect ( keys ) . toEqual ( [ 'arn:aws:bedrock-agentcore:us-east-1:123:gateway/gw-1' ] ) ;
555555 } ) ;
556556
@@ -563,7 +563,7 @@ describe('resolveConfigBundleComponentKeys', () => {
563563 } ) ;
564564
565565 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
566- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
566+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
567567 expect ( keys ) . toEqual ( [ 'arn:mcp:gw:resolved' ] ) ;
568568 } ) ;
569569
@@ -574,7 +574,7 @@ describe('resolveConfigBundleComponentKeys', () => {
574574 const deployedState = makeDeployedState ( 'target1' , { runtimes : { } } ) ;
575575
576576 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
577- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
577+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
578578 expect ( keys ) . toEqual ( [ 'arn:existing:key' ] ) ;
579579 } ) ;
580580
@@ -585,7 +585,7 @@ describe('resolveConfigBundleComponentKeys', () => {
585585 const deployedState = makeDeployedState ( 'target1' , { runtimes : { } } ) ;
586586
587587 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
588- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
588+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
589589 expect ( keys ) . toEqual ( [ 'some-plain-key' ] ) ;
590590 } ) ;
591591
@@ -629,9 +629,9 @@ describe('resolveConfigBundleComponentKeys', () => {
629629
630630 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
631631 // Original should still have the placeholder
632- expect ( Object . keys ( spec . configBundles ! [ 0 ] ! . components ) ) . toEqual ( [ '{{runtime:my-rt}}' ] ) ;
632+ expect ( Object . keys ( spec . configBundles [ 0 ] ! . components ) ) . toEqual ( [ '{{runtime:my-rt}}' ] ) ;
633633 // Result should have the resolved key
634- expect ( Object . keys ( result . configBundles ! [ 0 ] ! . components ) ) . toEqual ( [ 'arn:resolved' ] ) ;
634+ expect ( Object . keys ( result . configBundles [ 0 ] ! . components ) ) . toEqual ( [ 'arn:resolved' ] ) ;
635635 } ) ;
636636
637637 it ( 'prefers HTTP gateway over MCP gateway when both exist with same name' , ( ) => {
@@ -644,7 +644,7 @@ describe('resolveConfigBundleComponentKeys', () => {
644644 } ) ;
645645
646646 const result = resolveConfigBundleComponentKeys ( spec , deployedState , 'target1' ) ;
647- const keys = Object . keys ( result . configBundles ! [ 0 ] ! . components ) ;
647+ const keys = Object . keys ( result . configBundles [ 0 ] ! . components ) ;
648648 // HTTP gateway should take precedence (checked first in code)
649649 expect ( keys ) . toEqual ( [ 'arn:http:gw' ] ) ;
650650 } ) ;
0 commit comments