From b13fde61df190adcb5e3d8a0d4f91fd7004dab3b Mon Sep 17 00:00:00 2001 From: Pushp Date: Thu, 22 Oct 2026 15:47:30 +0530 Subject: [PATCH] test(pipeline): expect SUPERSEDED execution mode The deployment-pipeline test pinned ExecutionMode to QUEUED and broke after switching the pipeline to SUPERSEDED, failing the CodeBuild Verify stage (and the GitHub lint-and-test check). Update the assertion and test title to match the intended SUPERSEDED behaviour. --- src/tests/deployment-pipeline.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/deployment-pipeline.test.ts b/src/tests/deployment-pipeline.test.ts index e9df43a..7245bc1 100644 --- a/src/tests/deployment-pipeline.test.ts +++ b/src/tests/deployment-pipeline.test.ts @@ -36,14 +36,16 @@ function resourcesOf( } describe('AWS-native frontend deployment pipeline', () => { - it('uses a queued V2 pipeline with direct production build and AWS production approval', () => { + it('uses a superseded V2 pipeline with direct production build and AWS production approval', () => { const template = synthPipeline(); const [, pipeline] = resourcesOf(template, 'AWS::CodePipeline::Pipeline')[0]; const properties = pipeline.Properties as Record; const stages = properties.Stages as Array>; expect(properties.PipelineType).toBe('V2'); - expect(properties.ExecutionMode).toBe('QUEUED'); + // SUPERSEDED so a burst of pushes collapses into one approval of the latest + // commit, instead of forcing the approver to approve every commit one by one. + expect(properties.ExecutionMode).toBe('SUPERSEDED'); expect(stages.map((stage) => stage.Name)).toEqual([ 'Source', 'Verify',