Lukasz Wlosek
05/19/2022, 9:04 AM.withRequest({
method: 'GET',
path: term({
generate: '/user/9ae9b264-f181-46ea-a468-4919c48fbe94',
matcher:
'/user/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
}), // we want to be strict with what we send out <https://docs.pact.io/getting_started/matching#request-matching>
headers: {
Accept: 'application/json, text/plain, */*',
Authorization: string('Bearer testToken')
}
})
when I save a different uuid setup in the provider side the verifaction fails, any tips on how to achieve this, read about provider state injected values, but it does not seem to be yet implemented in pact-js?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Lukasz Wlosek
05/19/2022, 10:07 AM