Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/tests/deployment-pipeline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>;
const stages = properties.Stages as Array<Record<string, unknown>>;

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',
Expand Down
Loading