GitHub
04/23/2024, 1:48 PM[14:48:11.902] ERROR (75855): pact@12.4.0: Test failed for the following reasons:
Mock server failed with the following mismatches:
0) The following request was incorrect:
GET /eachKeyMatches
1.0 Expected query parameter 'from' but was missing
1.1 Mismatch with header 'Accept': Expected header 'Accept' at index 1 to have value '' but was 'text/plain'
1.2 Mismatch with header 'Accept': Expected header 'Accept' at index 2 to have value '' but was '*/*'
1) returns the shape of object given to the matcher
0 passing (47ms)
1 failing
1) V4 Matchers
eachKeyMatches
returns the shape of object given to the matcher:
AxiosError: Request failed with status code 500
at settle (/Users/yousaf.nabi/dev/pact-foundation/pact-js/examples/v4/matchers/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (/Users/yousaf.nabi/dev/pact-foundation/pact-js/examples/v4/matchers/node_modules/axios/lib/adapters/http.js:589:11)
at IncomingMessage.emit (node:events:526:35)
at IncomingMessage.emit (node:domain:488:12)
at endReadableNT (node:internal/streams/readable:1589:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
pact-foundation/pact-js
✅ All checks have passed
19/19 successful checksGitHub
04/23/2024, 11:39 PM