chore(deps): update dependency @pact-foundation/pact to v16.3.1 #839
build.yml
on: pull_request
Annotations
5 errors
|
Test
Process completed with exit code 2.
|
|
src/api.pact.spec.ts > API Pact test > retrieving products > products exists:
src/api.pact.spec.ts#L112
AxiosError: Network Error
❯ XMLHttpRequest.handleError node_modules/axios/lib/adapters/xhr.js:122:21
❯ XMLHttpRequest.invokeTheCallbackFunction node_modules/jsdom/lib/generated/idl/EventHandlerNonNull.js:14:28
❯ XMLHttpRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:57:32
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:360:16
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:296:3
❯ XMLHttpRequestImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:243:9
❯ fireAnEvent node_modules/jsdom/lib/jsdom/living/helpers/events.js:18:36
❯ requestErrorSteps node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:157:3
❯ dispatchError node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:131:3
❯ node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:752:13
❯ Axios.request node_modules/axios/lib/core/Axios.js:46:41
❯ src/api.pact.spec.ts:112:26
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { description: undefined, number: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', Authorization: '***' }, baseURL: 'http://127.0.0.1:41415', method: 'get', url: '/products', allowAbsoluteUrls: true }, code: 'ERR_NETWORK', status: undefined }
|
|
src/api.pact.spec.ts > API Pact test > retrieving a product > product does not exist:
src/api.pact.spec.ts#L75
AssertionError: expected [Function] to throw error including 'Request failed with status code 404' but got 'Network Error'
Expected: "Request failed with status code 404"
Received: "Network Error"
❯ src/api.pact.spec.ts:75:43
❯ PactV3.<anonymous> node_modules/@pact-foundation/src/v3/pact.ts:268:18
❯ step node_modules/@pact-foundation/pact/src/v3/pact.js:33:23
❯ Object.next node_modules/@pact-foundation/pact/src/v3/pact.js:14:53
❯ node_modules/@pact-foundation/pact/src/v3/pact.js:8:71
|
|
src/api.pact.spec.ts > API Pact test > retrieving a product > ID 10 exists:
src/api.pact.spec.ts#L47
AxiosError: Network Error
❯ XMLHttpRequest.handleError node_modules/axios/lib/adapters/xhr.js:122:21
❯ XMLHttpRequest.invokeTheCallbackFunction node_modules/jsdom/lib/generated/idl/EventHandlerNonNull.js:14:28
❯ XMLHttpRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:57:32
❯ innerInvokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:360:16
❯ invokeEventListeners node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:296:3
❯ XMLHttpRequestImpl._dispatch node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:243:9
❯ fireAnEvent node_modules/jsdom/lib/jsdom/living/helpers/events.js:18:36
❯ requestErrorSteps node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:157:3
❯ dispatchError node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:131:3
❯ node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:752:13
❯ Axios.request node_modules/axios/lib/core/Axios.js:46:41
❯ src/api.pact.spec.ts:47:25
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { description: undefined, number: undefined, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false, legacyInterceptorReqResOrdering: true }, adapter: [ 'xhr', 'http', 'fetch' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json, text/plain, */*', Authorization: '***' }, baseURL: 'http://127.0.0.1:45421', method: 'get', url: '/product/10', allowAbsoluteUrls: true }, code: 'ERR_NETWORK', status: undefined }
|
|
Test completion check
Process completed with exit code 1.
|