Reputation: 33
I don't see a way to pass the body for stateChange call using pact.io JavaScript version. For the JVM version ConsumerPactBuilder.given() takes two parameters, the state name and a map of params. However, I do not see an equivalent for JavaScript.
Upvotes: 0
Views: 316
Reputation: 12847
That's a v3 spec feature, which is currently not supported in other languages (Just JVM and Rust at the moment). We are working on v3 compatibility in other languages, but it's not yet complete.
Upvotes: 1