Victor Zviaruha
11/03/2022, 5:13 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Timothy Jones
11/03/2022, 11:24 PMTimothy Jones
11/04/2022, 6:30 AMprovider is a promise, so you need to await or return them all.
Also, you don't need to call writePact. Calling finalize does this for you.Timothy Jones
11/04/2022, 6:34 AMprovider.verify(), but it didn't take any in V9. You should first await your request, and then await provider.verify(). Normally you would do the verify in an afterEach()Timothy Jones
11/04/2022, 6:34 AMTimothy Jones
11/04/2022, 6:34 AMTimothy Jones
11/04/2022, 6:35 AMgiven - this is for provider states, not for describing the name of the request.Victor Zviaruha
11/04/2022, 11:04 AMgetaddrinfo ENOTFOUND undefined
and
Pact verification failed - expected interactions did not match actual.Timothy Jones
11/04/2022, 11:27 AMMatt (pactflow.io / pact-js / pact-go)
headers: '{"Accept", "application/json"}',
I’m just on mobile, but had a quick peek. The value should be a key/value object, not a stringMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
afterEach(() => provider.verify);
afterAll(() => provider.finalize);Matt (pactflow.io / pact-js / pact-go)
Victor Zviaruha
11/04/2022, 1:47 PMPact verification failed - expected interactions did not match actual