@@ -40,7 +40,7 @@ describe('integration: add and remove config-bundle', () => {
4040 expect ( json . bundleName ) . toBe ( 'InlineBundle' ) ;
4141
4242 const config = await readProjectConfig ( project . projectPath ) ;
43- const bundle = config . configBundles . find ( b => b . name === 'InlineBundle' ) ;
43+ const bundle = config . configBundles ! . find ( b => b . name === 'InlineBundle' ) ;
4444 expect ( bundle ) . toBeDefined ( ) ;
4545 expect ( bundle ! . type ) . toBe ( 'ConfigurationBundle' ) ;
4646 expect ( bundle ! . branchName ) . toBe ( 'mainline' ) ;
@@ -68,7 +68,7 @@ describe('integration: add and remove config-bundle', () => {
6868 expect ( json . bundleName ) . toBe ( 'FileBundle' ) ;
6969
7070 const config = await readProjectConfig ( project . projectPath ) ;
71- const bundle = config . configBundles . find ( b => b . name === 'FileBundle' ) ;
71+ const bundle = config . configBundles ! . find ( b => b . name === 'FileBundle' ) ;
7272 expect ( bundle ) . toBeDefined ( ) ;
7373 expect ( Object . keys ( bundle ! . components ) ) . toHaveLength ( 2 ) ;
7474 } ) ;
@@ -102,7 +102,7 @@ describe('integration: add and remove config-bundle', () => {
102102 expect ( json . bundleName ) . toBe ( 'FullOptsBundle' ) ;
103103
104104 const config = await readProjectConfig ( project . projectPath ) ;
105- const bundle = config . configBundles . find ( b => b . name === 'FullOptsBundle' ) ;
105+ const bundle = config . configBundles ! . find ( b => b . name === 'FullOptsBundle' ) ;
106106 expect ( bundle ) . toBeDefined ( ) ;
107107 expect ( bundle ! . description ) . toBe ( 'A bundle with all optional fields' ) ;
108108 expect ( bundle ! . branchName ) . toBe ( 'feature-branch' ) ;
@@ -127,7 +127,7 @@ describe('integration: add and remove config-bundle', () => {
127127 expect ( json . bundleName ) . toBe ( 'PlaceholderBundle' ) ;
128128
129129 const config = await readProjectConfig ( project . projectPath ) ;
130- const bundle = config . configBundles . find ( b => b . name === 'PlaceholderBundle' ) ;
130+ const bundle = config . configBundles ! . find ( b => b . name === 'PlaceholderBundle' ) ;
131131 expect ( bundle ) . toBeDefined ( ) ;
132132 const keys = Object . keys ( bundle ! . components ) ;
133133 expect ( keys ) . toContain ( '{{runtime:AgentA}}' ) ;
@@ -236,7 +236,7 @@ describe('integration: add and remove config-bundle', () => {
236236 expect ( json . success ) . toBe ( true ) ;
237237
238238 const config = await readProjectConfig ( project . projectPath ) ;
239- const bundle = config . configBundles . find ( b => b . name === 'InlineBundle' ) ;
239+ const bundle = config . configBundles ! . find ( b => b . name === 'InlineBundle' ) ;
240240 expect ( bundle ) . toBeUndefined ( ) ;
241241 } ) ;
242242
@@ -251,14 +251,14 @@ describe('integration: add and remove config-bundle', () => {
251251
252252 it ( 'removes all remaining config bundles one by one' , async ( ) => {
253253 const configBefore = await readProjectConfig ( project . projectPath ) ;
254- const remaining = configBefore . configBundles . map ( b => b . name ) ;
254+ const remaining = configBefore . configBundles ! . map ( b => b . name ) ;
255255
256256 for ( const name of remaining ) {
257257 await runSuccess ( [ 'remove' , 'config-bundle' , '--name' , name , '--json' ] , project . projectPath ) ;
258258 }
259259
260260 const configAfter = await readProjectConfig ( project . projectPath ) ;
261- expect ( configAfter . configBundles ) . toHaveLength ( 0 ) ;
261+ expect ( configAfter . configBundles ! ) . toHaveLength ( 0 ) ;
262262 } ) ;
263263 } ) ;
264264
@@ -282,21 +282,21 @@ describe('integration: add and remove config-bundle', () => {
282282 }
283283
284284 const config = await readProjectConfig ( project . projectPath ) ;
285- expect ( config . configBundles ) . toHaveLength ( bundleNames . length ) ;
285+ expect ( config . configBundles ! ) . toHaveLength ( bundleNames . length ) ;
286286
287287 for ( const name of bundleNames ) {
288- expect ( config . configBundles . find ( b => b . name === name ) ) . toBeDefined ( ) ;
288+ expect ( config . configBundles ! . find ( b => b . name === name ) ) . toBeDefined ( ) ;
289289 }
290290 } ) ;
291291
292292 it ( 'removing one bundle does not affect others' , async ( ) => {
293293 await runSuccess ( [ 'remove' , 'config-bundle' , '--name' , 'BundleBeta' , '--json' ] , project . projectPath ) ;
294294
295295 const config = await readProjectConfig ( project . projectPath ) ;
296- expect ( config . configBundles ) . toHaveLength ( 2 ) ;
297- expect ( config . configBundles . find ( b => b . name === 'BundleAlpha' ) ) . toBeDefined ( ) ;
298- expect ( config . configBundles . find ( b => b . name === 'BundleGamma' ) ) . toBeDefined ( ) ;
299- expect ( config . configBundles . find ( b => b . name === 'BundleBeta' ) ) . toBeUndefined ( ) ;
296+ expect ( config . configBundles ! ) . toHaveLength ( 2 ) ;
297+ expect ( config . configBundles ! . find ( b => b . name === 'BundleAlpha' ) ) . toBeDefined ( ) ;
298+ expect ( config . configBundles ! . find ( b => b . name === 'BundleGamma' ) ) . toBeDefined ( ) ;
299+ expect ( config . configBundles ! . find ( b => b . name === 'BundleBeta' ) ) . toBeUndefined ( ) ;
300300 } ) ;
301301
302302 afterAll ( async ( ) => {
0 commit comments