Sean Finniss
08/06/2024, 2:20 PMSean Finniss
08/06/2024, 2:45 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
• find a way to intercept the meta data call so it doesn’t get to the mock services?Not in Pact, but most test frameworks these days have a way to do that. e.g. in JS you might use
nock
, or even just stub the metadata function directly.
I would go this route if you must.
We do have an old blog on a related topic (HAL/Siren), the use case is slightly different but will share it just in case: https://pactflow.io/blog/dealing-with-hypermedia-with-pact-tests/
Example project (in JS): https://github.com/pactflow/example-sirenSean Finniss
08/07/2024, 8:33 AM