Laura Cabantous
06/27/2022, 4:19 PMeachLike(propertyDocumentWithoutTransactions, { min: 2 })
However, I'm having the following warning when running the test:
Pact Binary Error: WARN: Only the first item will be used to match the items in the array at $['body']['addresses']
Can anyone help explain what this means?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
06/28/2022, 3:29 AMTimothy Jones
06/28/2022, 3:32 AMTimothy Jones
06/28/2022, 3:32 AMOwen Oclee
06/28/2022, 9:43 AM{
address: {
uprn: integer()
},
transactions: {
sales: {
history: eachLike({
price: integer(),
date: iso8601Date()
})
}
}
}
The error is when running the consumer contract tests; here’s the context:
await provider.addInteraction({
// ...
willRespondWith: {
// ...
body: {
addresses: eachLike(propertyDocument, { min: 2 }),
}
}
});
The tests still run so it’s probably not a problem, but the error threw us off a bit and it’s not clear if we need to do something about it?Timothy Jones
06/28/2022, 9:44 AMTimothy Jones
06/28/2022, 9:45 AMTimothy Jones
06/28/2022, 9:45 AMTimothy Jones
06/28/2022, 9:46 AMMatt (pactflow.io / pact-js / pact-go)
I don’t think you need to do something about it, but I do think it’s a bug. Might be worth opening an issue about itI recall this is a recurring issue that Beth has just never been able to fully whack-a-mole to completion.
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
06/28/2022, 11:09 AMOwen Oclee
06/28/2022, 1:11 PM