hello, morning! Im creating some pact tests agains...
# pact-js
m
hello, morning! Im creating some pact tests against a Java provider and im trying to check a response that comes with a key value result. something like:
Copy code
{
  items: {
    123: {
      id: 123, -> i want to check this
      type: 'type' -> i want to check this
    },
    456: {
      id: 456,
      type: 'another_type'
    }
  }
}
im trying on the consumer side to add a similar response on the
willRespondWith
, but im not being able to make the key part as those are being set in the provider state and im not able to add a function
1
this is the response im trying to create on the consumer side
well, i found the
eachKeyMatches
and seems to work for what I was trying to do 🙂 thanks anyway!
☝️ 1
❤️ 1
m
nice work 🙂