Joel
08/12/2022, 6:59 AMwithRequest
method, I get a 500 from the mock server what makes debugging really hard (pushing this issue as it makes it hard to find out whats going on).
Is it intended to stick to PactV2 for GraphQL testing or is it possible to create a Pact with a body for the request with PactV3?
Just asking here to see if i missed something, otherwise I think I will open a issue with an example.Joel
08/12/2022, 10:38 AM.withRequest({
method: 'POST',
path: `/product/graphql`,
headers: {
'Content-Type': 'application/json',
Accept: "application/json",
},
// body: { "query":"{ product { data { idProduct name } } }", "variables": null } // fails
// body: MatchersV3.like({ "query":"{ product { data { idProduct name } } }", "variables": null }) // fails
})
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Joel
08/12/2022, 1:41 PM<https://github.com/pact-foundation/pact-js/tree/573b00d5def4362914e885c40803a510ad249575/src/v3|v3>/pact.ts
don't use body in withRequest)?
Or should I create a issue with a code example?Matt (pactflow.io / pact-js / pact-go)
Joel
08/16/2022, 6:31 AMMatt (pactflow.io / pact-js / pact-go)