surpher/PactSwift

Bug: EachLike matcher ignores any embedded matchers

surpher opened this issue ยท 1 comments

๐ŸŒŽ Environment

  • Xcode: 12.5
  • Platform: iOS and macOS
  • Version/Release: 0.4.1
  • Dependency manager: SPM, Carthage

๐Ÿ’ฌ Description

When embedding any matchers in EachLike, they are ignored and not written to Pact contract.

๐Ÿฆถ Reproduction Steps

Steps to reproduce the behavior:

  1. Write a Pact test
  2. The .willRespondWith(body:...) to include a "example": Matcher.EachLike(SomethingLike("one")) expectation
  3. Run Pact test
  4. Open Pact contract

๐Ÿค” Expected Results

Pact contract should contain

"$.body.example": {
  "min": 1
},
"$.body.example[*].*": {
  "match": "type"
},

๐Ÿ˜ฒ Actual Results

The matcher block for SomethingLike is missing

๐ŸŒณ Logs

Include any logs or command output if applicable...

๐Ÿ“„ Stack Traces

Include a stack trace if applicable...

๐Ÿค Relationships

  • Related PRs or Issues: #xxx, #yyy

Fixed in v0.4.2