Skip to content

ConsumerVersionSelectors interface does support fallbackBranch (which is defined in document) #1418

@samer-lahlouh

Description

@samer-lahlouh

Expected behaviour
Can set up like this

const verificationOptions = {
  //...
  consumerVersionSelectors: [
    {
      matchingBranch: true,
      fallbackBranch: "main"
    }
  ]
}

Actual behaviour

Image

Steps to reproduce
I checked code base here https://github.com/pact-foundation/pact-js-core/blob/master/src/verifier/types.ts#L3

export interface ConsumerVersionSelector {
  tag?: string;
  latest?: boolean;
  consumer?: string;
  deployedOrReleased?: boolean;
  deployed?: boolean;
  released?: boolean;
  environment?: string;
  fallbackTag?: string;
  branch?: string;
  mainBranch?: boolean;
  matchingBranch?: boolean;
}

It does not match the document https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors#properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting feedbackAwaiting Feedback from OPenhancementIndicates new feature requeststriageThis issue is yet to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions