From 1d7f02b2c82a208bfe7e5cf7b4c11ed91fa5e1ab Mon Sep 17 00:00:00 2001 From: Miguel Heitor Date: Thu, 11 Jan 2024 10:26:59 +0100 Subject: [PATCH] chore: update from provider state link --- docs/matching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/matching.md b/docs/matching.md index 9df5344bc..20256ab54 100644 --- a/docs/matching.md +++ b/docs/matching.md @@ -267,7 +267,7 @@ these can be used to match a hypermedia format like Siren, see [Example Pact + S The `fromProviderState` matching function allows values to be generated based on values returned from the provider state callbacks. This should be used for the cases were database entries have auto-generated values and these values need to be used in the URLs or query parameters. -For an example, see [examples/v3/provider-state-injected](https://github.com/pact-foundation/pact-js/tree/feat/v3.0.0/examples/v3/provider-state-injected). +For an example, see [examples/v3/provider-state-injected](https://github.com/pact-foundation/pact-js/tree/master/examples/v3/provider-state-injected). For this to work, in the consumer test we use the `fromProviderState` matching function which takes an expression and an example value. The example value will be used in the consumer test.