Skip to content

feat: migrate to vitest and merry in gardenfi/core #1

feat: migrate to vitest and merry in gardenfi/core

feat: migrate to vitest and merry in gardenfi/core #1

Triggered via pull request July 4, 2024 11:29
Status Failure
Total duration 9m 10s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
src/lib/garden.spec.ts > Garden > should be able to create order with valid parameters: packages/core/src/lib/garden.ts#L103
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ GardenJS.swap src/lib/garden.ts:103:20 ❯ src/lib/garden.spec.ts:116:21 Caused by: Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/garden.spec.ts > Garden > should initiate and redeem: packages/core/src/lib/garden.ts#L103
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ GardenJS.swap src/lib/garden.ts:103:20 ❯ src/lib/garden.spec.ts:153:23 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/orderbook.spec.ts > orderbook > should create an order with the valid configuration: packages/orderbook/src/lib/orderbook.ts#L81
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Orderbook.getSupportedContracts src/lib/orderbook.ts:81:33 ❯ Orderbook.createOrder src/lib/orderbook.ts:109:23 ❯ src/lib/orderbook.spec.ts:61:22 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/orderbook.spec.ts > orderbook > subscribe orders should trigger the callback when an order are updated: packages/orderbook/src/lib/orderbook.ts#L134
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Orderbook.getOrders src/lib/orderbook.ts:134:28 ❯ src/lib/orderbook.spec.ts:77:17 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/orderbook.spec.ts > orderbook > init should create the orderbook with an auth token: packages/orderbook/src/lib/auth/siwe.ts#L76
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Siwe.signStatement src/lib/auth/siwe.ts:76:27 ❯ Siwe.getToken src/lib/auth/siwe.ts:52:40 ❯ Function.init src/lib/orderbook.ts:63:23 ❯ src/lib/orderbook.spec.ts:103:5 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/orderbook.spec.ts > orderbook > should get a single order: packages/orderbook/src/lib/orderbook.ts#L81
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Orderbook.getSupportedContracts src/lib/orderbook.ts:81:33 ❯ Orderbook.createOrder src/lib/orderbook.ts:109:23 ❯ src/lib/orderbook.spec.ts:117:21 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/orderbook.spec.ts > orderbook > should be able to get supported assets: packages/orderbook/src/lib/orderbook.ts#L81
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Orderbook.getSupportedContracts src/lib/orderbook.ts:81:33 ❯ src/lib/orderbook.spec.ts:133:20 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/ordersSocket.spec.ts > Order Socket > should subscribe and listen to orders: packages/orderbook/src/lib/orderbook.ts#L134
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Orderbook.getOrders src/lib/orderbook.ts:134:28 ❯ src/lib/ordersSocket.spec.ts:35:31 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/auth/siwe.spec.ts > Siwe > should generate a valid token: packages/orderbook/src/lib/auth/siwe.ts#L76
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Siwe.signStatement src/lib/auth/siwe.ts:76:27 ❯ Siwe.getToken src/lib/auth/siwe.ts:52:40 ❯ src/lib/auth/siwe.spec.ts:33:19 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
src/lib/auth/siwe.spec.ts > Siwe > should return the same token if it has already been generated: packages/orderbook/src/lib/auth/siwe.ts#L76
TypeError: fetch failed ❯ Function._get ../../node_modules/@catalogfi/utils/dist/index.js:95:29 ❯ k.retry ../../node_modules/@catalogfi/utils/dist/index.js:25:16 ❯ Function.get ../../node_modules/@catalogfi/utils/dist/index.js:105:12 ❯ Siwe.signStatement src/lib/auth/siwe.ts:76:27 ❯ Siwe.getToken src/lib/auth/siwe.ts:52:40 ❯ src/lib/auth/siwe.spec.ts:41:24 Caused by: Error: connect ECONNREFUSED ::1:8080 ❯ TCPConnectWrap.afterConnect [as oncomplete] ../../node:net:1555:16 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 8080 }
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/