Hi, I am trying to get the dead simple example wor...
# pact-js
m
Hi, I am trying to get the dead simple example working, but I don’t get what is wrong. Based on docs it should work, but it does not. The same happens if I do import MatchersV3.
it only works with
Matchers
which is import from what I understand - v2 matchers. It does not work for v3 matchers at all.
m
It might be a type definition/conflict. They look the same, but come from different packages. Thanks for raising the bug
m
I would help with PR, but unfortunately I do not know Pact’s internals enough yet
currently it’s blocking our work on Pact introduction to our project 😞
m
Why can’t you just use
Matchers
? If you want it to match exactly, you can actually just skip the matcher altogether
(it’s only needed within another matcher to reset the matching context)
m
Matchers are V2 from what I see, so it is somehow limited with the capabilities
m
what capabilities do you need?
currently it’s blocking our work on Pact introduction to our project
presumably, you could coerce the types into the correct ones as needed. It looks like a TS definition issue, rather than a real problem
m
I bet so, but it has to be fixed at pact’s package to get it working correctly for us(all users)
I was trying to figure it out, but I didn’t find it. Really werid as in theory types are matching 😕
nod hmm yes 1
m
for sure!
m
If I would, I would already issue a PR there
thankyou 1