Skip to content

fix: Pass headers for GET and DELETE requests #308

fix: Pass headers for GET and DELETE requests

fix: Pass headers for GET and DELETE requests #308

Triggered via pull request February 22, 2024 11:52
Status Failure
Total duration 33s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 2 warnings
getEndpoint > should accept just a path: tests/endpoint.test.ts#L15
Error: expect(received).resolves.toEqual() Received promise rejected instead of resolved Rejected to value: [TypeError: fetch failed] at expect (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/expect/build/index.js:113:15) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:16:11 at Generator.next (<anonymous>) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:8:71 at new Promise (<anonymous>) at Object.<anonymous>.__awaiter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:4:12) at Object.<anonymous> (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:15:46) at Promise.then.completed (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:316:40) at _runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:444:34)
getEndpoint > should accept a path param: tests/endpoint.test.ts#L28
Error: expect(received).resolves.toEqual() Received promise rejected instead of resolved Rejected to value: [TypeError: fetch failed] at expect (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/expect/build/index.js:113:15) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:29:11 at Generator.next (<anonymous>) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:8:71 at new Promise (<anonymous>) at Object.<anonymous>.__awaiter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:4:12) at Object.<anonymous> (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:28:47) at Promise.then.completed (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:444:34)
getEndpoint > should accept several path params: tests/endpoint.test.ts#L38
Error: expect(received).resolves.toEqual() Received promise rejected instead of resolved Rejected to value: [TypeError: fetch failed] at expect (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/expect/build/index.js:113:15) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:39:11 at Generator.next (<anonymous>) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:8:71 at new Promise (<anonymous>) at Object.<anonymous>.__awaiter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:4:12) at Object.<anonymous> (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:38:54) at Promise.then.completed (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:444:34)
getEndpoint > should accept query params: tests/endpoint.test.ts#L54
Error: expect(received).resolves.toEqual() Received promise rejected instead of resolved Rejected to value: [TypeError: fetch failed] at expect (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/expect/build/index.js:113:15) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:55:11 at Generator.next (<anonymous>) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:8:71 at new Promise (<anonymous>) at Object.<anonymous>.__awaiter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:4:12) at Object.<anonymous> (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:54:47) at Promise.then.completed (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:444:34)
getEndpoint > should accept a raw URL: tests/endpoint.test.ts#L103
Error: expect(received).resolves.toEqual() Received promise rejected instead of resolved Rejected to value: [TypeError: Failed to parse URL from /test-url?raw=true] at expect (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/expect/build/index.js:113:15) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:104:11 at Generator.next (<anonymous>) at /home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:8:71 at new Promise (<anonymous>) at Object.<anonymous>.__awaiter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:4:12) at Object.<anonymous> (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/tests/endpoint.test.ts:103:44) at Promise.then.completed (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/safe-gateway-typescript-sdk/safe-gateway-typescript-sdk/node_modules/jest-runner/build/runTest.js:444:34)
tests
Some jest tests failed.
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, mattallty/jest-github-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
tests
The following actions uses node12 which is deprecated and will be forced to run on node16: mattallty/jest-github-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/