@@ -908,45 +908,7 @@ describe('staging', () => {
908908 const dockerStubInput = readDockerStubInputConcat ( ) ;
909909 // Docker ran for the asset in Stack1
910910 expect ( dockerStubInput ) . toMatch ( DockerStubCommand . SUCCESS ) ;
911- // Docker did not run for the asset in Stack2
912- expect ( dockerStubInput ) . not . toMatch ( DockerStubCommand . MULTIPLE_FILES ) ;
913- } ) ;
914-
915- test ( 'correctly skips bundling with stack under stage and custom stack name' , ( ) => {
916- // GIVEN
917- const app = new App ( ) ;
918-
919- const stage = new Stage ( app , 'Stage' ) ;
920- stage . node . setContext ( cxapi . BUNDLING_STACKS , [ 'Stage/Stack1' ] ) ;
921-
922- const stack1 = new Stack ( stage , 'Stack1' , { stackName : 'unrelated-stack1-name' } ) ;
923- const stack2 = new Stack ( stage , 'Stack2' , { stackName : 'unrelated-stack2-name' } ) ;
924- const directory = path . join ( __dirname , 'fs' , 'fixtures' , 'test1' ) ;
925-
926- // WHEN
927- new AssetStaging ( stack1 , 'Asset' , {
928- sourcePath : directory ,
929- assetHashType : AssetHashType . OUTPUT ,
930- bundling : {
931- image : DockerImage . fromRegistry ( 'alpine' ) ,
932- command : [ DockerStubCommand . SUCCESS ] ,
933- } ,
934- } ) ;
935-
936- new AssetStaging ( stack2 , 'Asset' , {
937- sourcePath : directory ,
938- assetHashType : AssetHashType . OUTPUT ,
939- bundling : {
940- image : DockerImage . fromRegistry ( 'alpine' ) ,
941- command : [ DockerStubCommand . MULTIPLE_FILES ] ,
942- } ,
943- } ) ;
944-
945- // THEN
946- const dockerStubInput = readDockerStubInputConcat ( ) ;
947- // Docker ran for the asset in Stack1
948- expect ( dockerStubInput ) . toMatch ( DockerStubCommand . SUCCESS ) ;
949- // Docker did not run for the asset in Stack2
911+ // DOcker did not run for the asset in Stack2
950912 expect ( dockerStubInput ) . not . toMatch ( DockerStubCommand . MULTIPLE_FILES ) ;
951913 } ) ;
952914
0 commit comments