@@ -111,7 +111,6 @@ describe('StageProcessor', () => {
111111 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
112112 } ) ;
113113 const processor = new AssemblyProcessor ( {
114- defaultStageDisplayName : 'DefaultStage' ,
115114 toolkit,
116115 allowedDestroyTypes : [ ] ,
117116 cdkOutDir : 'cdk.out' ,
@@ -149,7 +148,6 @@ describe('StageProcessor', () => {
149148 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
150149 } ) ;
151150 const processor = new AssemblyProcessor ( {
152- defaultStageDisplayName : 'DefaultStage' ,
153151 toolkit,
154152 allowedDestroyTypes : [ ] ,
155153 cdkOutDir : 'cdk.out' ,
@@ -187,7 +185,6 @@ describe('StageProcessor', () => {
187185 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
188186 } ) ;
189187 const processor = new AssemblyProcessor ( {
190- defaultStageDisplayName : 'DefaultStage' ,
191188 toolkit,
192189 allowedDestroyTypes : [ ] ,
193190 cdkOutDir : 'cdk.out' ,
@@ -226,7 +223,6 @@ describe('StageProcessor', () => {
226223 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
227224 } ) ;
228225 const processor = new AssemblyProcessor ( {
229- defaultStageDisplayName : 'DefaultStage' ,
230226 toolkit,
231227 allowedDestroyTypes : [ ] ,
232228 cdkOutDir : 'cdk.out' ,
@@ -261,7 +257,6 @@ describe('StageProcessor', () => {
261257 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
262258 } ) ;
263259 const processor = new AssemblyProcessor ( {
264- defaultStageDisplayName : 'DefaultStage' ,
265260 toolkit,
266261 allowedDestroyTypes : [ ] ,
267262 cdkOutDir : 'cdk.out' ,
@@ -372,7 +367,6 @@ describe('StageProcessor', () => {
372367 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
373368 } ) ;
374369 const processor = new AssemblyProcessor ( {
375- defaultStageDisplayName : 'DefaultStage' ,
376370 toolkit,
377371 allowedDestroyTypes : [ ] ,
378372 cdkOutDir : 'cdk.out' ,
@@ -446,7 +440,6 @@ describe('default stage', () => {
446440 node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
447441 } ) ;
448442 const processor = new AssemblyProcessor ( {
449- defaultStageDisplayName : 'DefaultStage' ,
450443 toolkit,
451444 allowedDestroyTypes : [ ] ,
452445 cdkOutDir : 'cdk.out' ,
@@ -467,36 +460,6 @@ describe('default stage', () => {
467460 'No Changes for stack: test-stack :white_check_mark:' ,
468461 ] ) ;
469462 } ) ;
470-
471- test ( 'with custom' , async ( ) => {
472- mock ( {
473- 'cdk.out' : mockOutDir ,
474- node_modules : mock . load ( path . join ( __dirname , '..' , 'node_modules' ) ) ,
475- } ) ;
476- const processor = new AssemblyProcessor ( {
477- defaultStageDisplayName : 'MyStage' ,
478- title : 'Diff for MyStage' ,
479- toolkit,
480- allowedDestroyTypes : [ ] ,
481- cdkOutDir : 'cdk.out' ,
482- diffMethod : DiffMethod . LocalFile (
483- 'cdk.out/SomeStage-test-stack.template.json' ,
484- ) ,
485- failOnDestructiveChanges : true ,
486- stackSelectorPatterns : [ ] ,
487- stackSelectionStrategy : 'all-stacks' ,
488- noFailOnDestructiveChanges : [ ] ,
489- } ) ;
490- await processor . processStages ( ) ;
491- const p = processor . stageComments ;
492- expect ( p ) . toEqual ( {
493- MyStage : expect . any ( Object ) ,
494- } ) ;
495- expect ( p . MyStage . title ) . toEqual ( 'Diff for MyStage' ) ;
496- expect ( p . MyStage . stackComments [ 'test-stack' ] ) . toEqual ( [
497- 'No Changes for stack: test-stack :white_check_mark:' ,
498- ] ) ;
499- } ) ;
500463} ) ;
501464
502465function setupCommentTest ( ) : AssemblyProcessor {
@@ -536,7 +499,6 @@ function setupCommentTest(): AssemblyProcessor {
536499 } ) ;
537500 jest . spyOn ( Toolkit . prototype , 'diff' ) . mockResolvedValue ( templateDiff ) ;
538501 return new AssemblyProcessor ( {
539- defaultStageDisplayName : 'DefaultStage' ,
540502 toolkit,
541503 allowedDestroyTypes : [ ] ,
542504 cdkOutDir : 'cdk.out' ,
0 commit comments