Ulises Cervino
03/27/2023, 1:52 PMatLeastOneLike meant "check this array, and at least 1 element in it should be like the template", but it turns out that's not it. What's the best way to check that there's at least 1 item in an array of varied items that conforms to the template?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
arrayContaining says - “this array can be of any length and contain any objects, but it must have at at least one object that matches this template”Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
03/27/2023, 11:36 PMatLeastOneLike is a synonym for eachLike - I’m not sure when it was added, but I agree it’s misnamedUlises Cervino
03/28/2023, 8:44 AMarrayContaining is what I need (I have a heterogeneous array in my response) and I want to check that 1 item matches the template, Y/n?Timothy Jones
03/28/2023, 8:50 AMUlises Cervino
03/28/2023, 9:35 AM