Remigijus Mažulis
08/08/2022, 5:45 AMRemigijus Mažulis
08/08/2022, 5:45 AMbeforeAll(() =>
provider
// Start the mock server
.setup()
// add interactions to the Mock Server, as many as required
.then(() =>
provider.addInteraction({
state: 'I have employee details',
uponReceiving: 'Request for employee details',
withRequest: {
method: 'GET',
path: term({
generate: 'employee/87034701-3046-47bc-9486-c470b04f66d7',
matcher: 'employee/[A-Z0-9-]+',
}),
},
willRespondWith: {
status: 200,
body: like(EXPECTED_BODY),
},
})
)
);
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Remigijus Mažulis
08/08/2022, 5:59 AMWhich version are you on?
"@pact-foundation/pact": "^9.18.1",
Ok looking into the e2e example 📖Matt (pactflow.io / pact-js / pact-go)
Remigijus Mažulis
08/08/2022, 7:18 AMBoris
08/08/2022, 7:23 AMBoris
08/08/2022, 7:24 AMTimothy Jones
08/08/2022, 9:21 AM