Hello all, Im trying to use `pact-msw-adapter` to...
# pact-js
e
Hello all, Im trying to use
pact-msw-adapter
to generate pact files for me. However, the generated pact file does not have
matchingRules
. I've also looked at the example here which also generates a pactfile without matchers. https://docs.pactflow.io/docs/examples/bi-directional/consumer/msw/#source-code How can I generate pacts with type matchers using the adapter, (
like, eachLike etc..
) as it does when you manually write the pacts without the adapter?
y
hey, it doesn’t support matchers as it is designed for utilising the pacts for schema validation against an openapi specification via swagger-mock-validator, or rolled into PactFlow’s bi-directional feature
e
So no way to use this adapter to verify graphql schemas?
y
there is also https://github.com/ludorival/pact-msw which i noted recently but ive not used it
m
Oh cool, I hadn't seen that project. Should we list it on our page of community ones?
these adaptors are designed for BDCT usage. BDCT doesn't leverage matchers as these are interested from the OAS schemas