Bug: EachLike matcher ignores any embedded matchers
surpher opened this issue ยท 1 comments
surpher commented
๐ 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:
- Write a Pact test
- The
.willRespondWith(body:...)
to include a"example": Matcher.EachLike(SomethingLike("one"))
expectation - Run Pact test
- 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
surpher commented
Fixed in v0.4.2