You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[*] I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures
[n/a] I have set my log level to debug and attached a log file showing the complete request/response cycle
For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem
Expected behaviour
Using a fromProviderState matcher in a query parameter value shouldn't return a JsonPath matcher.
The reality is that I wasn't totally sure whether to open the bug on this side of the pact jvm side (for my provider), but I found this note from the V3 path specification, and if I'm reading it right, I think that it's an error on the pact-js side. But maybe there's something else I'm missing to get these things to match up correctly.
So, I think that in the generated pact, I should get something like this:
Software versions
Please provide at least OS and version of pact-js
Issue Checklist
Please confirm the following:
Expected behaviour
Using a fromProviderState matcher in a query parameter value shouldn't return a JsonPath matcher.
The reality is that I wasn't totally sure whether to open the bug on this side of the pact jvm side (for my provider), but I found this note from the V3 path specification, and if I'm reading it right, I think that it's an error on the pact-js side. But maybe there's something else I'm missing to get these things to match up correctly.
So, I think that in the generated pact, I should get something like this:
Instead of
If I make this change manually to the pact, then pact-jvm injects the provider state like I would expect.
Actual behaviour
Using json path in the path matchers for query parameters.
Steps to reproduce
Using
provider = PactV3({ ... })
, have a provider test with something likeAnd then do the test and generate the state.
The text was updated successfully, but these errors were encountered: