Wellington Aquino
02/08/2022, 2:04 PMTaylor King
08/17/2022, 10:06 PMTaylor King
08/29/2022, 6:05 PM.given()
does work, but it also creates two interactions for the same test apparently adding the given() call to my interaction. I don't know if having both uponReceiving and given in one interaction is creating those two tests, but based on the type defs of uponReceiving that wouldn't make sense to me.Maxim Filimonov
09/13/2022, 10:11 AMuseQuery
hooks with Pact?
The only working one I found so far is to write component tests and that does mean that we are tying pact to our UI implementation. Trying to make pact covered layer as close as possible to the direct http calls.Taylor King
09/20/2022, 9:17 PMnew GraphQLInteraction()
.......
.willRespondWith({
status: 200,
headers: {
'Content-Type': 'application/json',
},
body: {
data: {
addTime: {
updatedRecord: {
id: like('62edadccafea8bf4d0d17bbd'),
currentTime: like(40),
},
},
},
},
});
Calling then a mocked Pact server, I am essentially testing that the response would also equal that response defined in the GraphQLInteraction ... so when would my expectation within the test file itself actually fail other than me intentionally (or unintentionally) not writing correctly the object to match against the response. Seems like even the unintentional failure would be more prohibitive than beneficial.
Totally could be misunderstanding the whole point (it's actually highly likely) ... but just wanted further documentation to unfuzzy this concept, and/or community discussion to help bridge this understanding in my head. Seems like, as I'm typing this, this would be more broad than just GraphQL itself and maybe it's a concept higher above I'm just not yet grasping, so would 1,000% love some insight and guidance to this scenario.Jay Wang
02/01/2023, 10:58 PMMatt (pactflow.io / pact-js / pact-go)
02/02/2023, 1:26 AMJay Wang
02/03/2023, 5:01 PMMankirat Gulati
05/12/2023, 5:24 PM