mar915h
mar915h

Reputation: 33

Pact JS - How to send request body for state change?

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

Answers (1)

J_A_X
J_A_X

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

Related Questions