stellar payment #323
ci.yml
on: pull_request
Frontend — Lint & Build
10s
Backend — Lint & Test
45s
Annotations
11 errors and 2 warnings
|
Frontend — Lint & Build
Process completed with exit code 1.
|
|
src/lib/db-enhanced.test.js:
backend/src/lib/db-enhanced.js#L25
Error: [vitest] No "default" export is defined on the "pg" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("pg"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ src/lib/db-enhanced.js:25:18
❯ src/lib/db-enhanced.test.js:29:25
|
|
src/lib/auth.test.js > createApiKeyAuth > enforces signature verification when signature headers are present:
backend/src/lib/auth.test.js#L138
AssertionError: expected "spy" to be called with arguments: [ { secret: 'signed-api-key', …(5) } ]
Received:
1st spy call:
Array [
Object {
"body": Object {
"amount": 1,
},
+ "clientIp": "1.2.3.4",
"method": "POST",
"path": "/api/payments",
"secret": "signed-api-key",
"signatureHeader": "sha256=abcd",
"timestampHeader": "1713916800",
},
]
Number of calls: 1
❯ src/lib/auth.test.js:138:36
|
|
src/lib/audit.test.js > logLoginAttempt > transitions to HALF_OPEN after timeout, recovers to CLOSED on successes, and triggers replay:
backend/src/lib/audit.test.js#L272
AssertionError: expected "spy" to be called once, but got 0 times
❯ src/lib/audit.test.js:272:23
|
|
src/lib/audit.test.js > logLoginAttempt > retries on transient errors:
backend/src/lib/audit.test.js#L196
AssertionError: expected "spy" to be called 3 times, but got 0 times
❯ src/lib/audit.test.js:196:23
|
|
src/lib/audit.test.js > logLoginAttempt > applies a cryptographic signature when audit signing secret is configured:
backend/src/lib/audit.test.js#L155
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
❯ src/lib/audit.test.js:155:24
|
|
src/lib/audit.test.js > logLoginAttempt > stores null ip_address and user_agent when not provided:
backend/src/lib/audit.test.js#L133
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
❯ src/lib/audit.test.js:133:24
|
|
src/lib/audit.test.js > logLoginAttempt > inserts a row with null merchantId:
backend/src/lib/audit.test.js#L113
AssertionError: expected "spy" to be called once, but got 0 times
❯ src/lib/audit.test.js:113:23
|
|
src/lib/audit.test.js > logLoginAttempt > inserts a login failure row with correct parameters:
backend/src/lib/audit.test.js#L94
AssertionError: expected "spy" to be called once, but got 0 times
❯ src/lib/audit.test.js:94:23
|
|
src/lib/audit.test.js > logLoginAttempt > inserts a login success row with correct parameters:
backend/src/lib/audit.test.js#L73
AssertionError: expected "spy" to be called once, but got 0 times
❯ src/lib/audit.test.js:73:23
|
|
services/path-payment/errorRecovery.test.ts:
backend/services/path-payment/errorRecovery.test.ts#L56
ReferenceError: afterEach is not defined
❯ services/path-payment/errorRecovery.test.ts:56:3
|
|
Frontend — Lint & Build
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Backend — Lint & Test
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|