Skip to content

feat: Implement /decode/errors endpoint #3

feat: Implement /decode/errors endpoint

feat: Implement /decode/errors endpoint #3

Triggered via pull request June 13, 2024 08:37
Status Failure
Total duration 42s
Artifacts

explorerkit-server-ci.yml

on: pull_request
run-test-cases
33s
run-test-cases
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
src/server.test.ts > Server API Tests > Decodes error messages: packages/explorerkit-server/src/server.test.ts#L908
AssertionError: expected { decodedErrors: [ { …(4) }, …(3) ] } to match object { decodedErrors: [ { …(4) }, …(3) ] } (2 matching properties omitted from actual) - Expected + Received Object { "decodedErrors": Array [ Object { - "decodedData": "Slippage tolerance exceeded", "errorCode": 6001, "name": "SlippageToleranceExceeded", "programId": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", }, null, Object { - "decodedData": "Invalid calculation", "errorCode": 6002, "name": "InvalidCalculation", "programId": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", }, Object { "errorCode": 35, "programId": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4", }, ], } ❯ src/server.test.ts:908:22
run-test-cases
Process completed with exit code 1.
run-test-cases
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.