Merge pull request #521 from zachyo/merchant-endpoint #20
ci.yml
on: push
Frontend — Lint & Build
27s
Backend — Lint & Test
22s
Annotations
11 errors and 2 warnings
|
src/lib/stellar.test.js > findMatchingPayment > matches return memo type:
backend/src/lib/stellar.test.js#L348
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:348:20
|
|
src/lib/stellar.test.js > findMatchingPayment > matches hash memo type:
backend/src/lib/stellar.test.js#L332
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:332:20
|
|
src/lib/stellar.test.js > findMatchingPayment > matches id memo type:
backend/src/lib/stellar.test.js#L316
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:316:20
|
|
src/lib/stellar.test.js > findMatchingPayment > matches payment with correct text memo:
backend/src/lib/stellar.test.js#L271
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:271:20
|
|
src/lib/stellar.test.js > findMatchingPayment > returns the first matching payment when multiple records are present:
backend/src/lib/stellar.test.js#L229
AssertionError: expected { id: 'op-first', …(3) } to deeply equal { id: 'op-first', …(2) }
- Expected
+ Received
Object {
"id": "op-first",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-first",
}
❯ src/lib/stellar.test.js:229:20
|
|
src/lib/stellar.test.js > findMatchingPayment > matches path_payment_strict_receive when destination asset and amount match:
backend/src/lib/stellar.test.js#L167
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "50.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:167:20
|
|
src/lib/stellar.test.js > findMatchingPayment > returns matching non-native (USDC) payment:
backend/src/lib/stellar.test.js#L90
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "50.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:90:20
|
|
src/lib/stellar.test.js > findMatchingPayment > returns matching XLM payment:
backend/src/lib/stellar.test.js#L68
AssertionError: expected { id: 'op-1', …(3) } to deeply equal { id: 'op-1', …(2) }
- Expected
+ Received
Object {
"id": "op-1",
"is_multisig": false,
+ "received_amount": "100.0000000",
"transaction_hash": "tx-abc123",
}
❯ src/lib/stellar.test.js:68:20
|
|
src/lib/request-schemas.test.js > registerMerchantZodSchema > accepts and passes through a metadata blob:
backend/src/lib/request-schemas.test.js#L249
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"password"
],
"message": "password is required"
}
]
❯ Object.get error [as error] node_modules/zod/v3/types.js:39:31
❯ ZodObject.parse node_modules/zod/v3/types.js:114:22
❯ src/lib/request-schemas.test.js:249:46
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'password' ], message: 'password is required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'password' ], message: 'password is required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { password: [ 'password is required' ] } } }
|
|
src/lib/request-schemas.test.js > registerMerchantZodSchema > parses and normalizes a valid merchant registration request:
backend/src/lib/request-schemas.test.js#L216
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"password"
],
"message": "password is required"
}
]
❯ Object.get error [as error] node_modules/zod/v3/types.js:39:31
❯ ZodObject.parse node_modules/zod/v3/types.js:114:22
❯ src/lib/request-schemas.test.js:216:46
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'password' ], message: 'password is required' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'undefined', path: [ 'password' ], message: 'password is required' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { password: [ 'password is required' ] } } }
|
|
Frontend — Lint & Build
Process completed with exit code 1.
|
|
Backend — Lint & Test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Frontend — Lint & Build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|