I guess I was expecting matchers to behave similar...
# pact-js
v
I guess I was expecting matchers to behave similarly as they do in Rspec
to match
with the same resolution as
to be_a(String)
nesting
m
The matchers get applied when the provider side test runs. I.e. They are for matching the response of a provider - this is a consumer test so matchers on the response won't yet have any effect
v
Got it. This makes sense. I was trying to figure out from JS documentation for an
any
matcher since I didn’t want to write a huge payload that I wasn’t testing for.
👍 1
I’m debating if I am doing a little bit of
functional testing
with what I am doing, but it seemed lightweight enough to use Pact for