Bug: RegexLike(_:term:) matcher does not verify value against pattern
Closed this issue ยท 0 comments
surpher commented
๐ Environment
- Xcode: 13.0
- Platform: all
- Version/Release: 0.10.0
- Dependency manager: any
๐ฌ Description
When using Matcher.RegexLike(:term)
, the provided value is not validated against the term.
Even though provider verification is still validating correctly, the consumer test should fail so that consumers don't test against invalid data.
๐ฆถ Reproduction Steps
Steps to reproduce the behaviour:
- Write a pact test with a
Matcher.RegexLike("28092021", term: #"\d{2}-\d{2}-\d{4}"#)
- Run pact test
๐ค Expected Results
The pact test fails indicating the provided value for the matcher did not match the set pattern.
๐ฒ Actual Results
Pact test passes.
๐ณ Logs
Include any logs or command output if applicable...
๐ Stack Traces
Include a stack trace if applicable...
๐ค Relationships
- Related PRs or Issues: #xxx, #yyy