Hello, I'm hoping someone can help me understand how the idea of a "shared fixtures" solution can work when talking about supporting both UI tests and pact consumer tests.
So, my understanding is that the pact consumer tests should ideally be written in such a way that they have
tight or exact request matching and loose response matching. I guess my question is: should the matching rules be defined as part of the fixture, and the non-Pact stub server needs to be able to interpret and understand those matching rules; or should the fixtures be simple request and response bodies, and we somehow with pact layer matching rules on top of those simple fixtures? The only examples I've found for using fixtures to seed pact consumer tests either
don't clearly show how the fixtures are being used for UI testing (if they are at all) or
use static fixtures without any matching rules. Does anyone know of any good examples of how this can work (preferably in either js or jvm, but I can work with other languages 🙏)?