fix: validate passing score in reward claim retry path #72
ci.yml
on: pull_request
Lint & Typecheck
19s
Test
47s
Annotations
3 errors and 12 warnings
|
Test
Process completed with exit code 1.
|
|
tests/unit/services/process-reward-claim.test.ts > processRewardClaim > should throw when on-chain transaction fails:
tests/unit/services/process-reward-claim.test.ts#L232
AssertionError: promise resolved "true" instead of rejecting
- Expected:
Error {
"message": "rejected promise",
}
+ Received:
true
❯ tests/unit/services/process-reward-claim.test.ts:232:5
|
|
tests/unit/services/process-reward-claim.test.ts > processRewardClaim > should successfully process claim and update DB in transaction:
tests/unit/services/process-reward-claim.test.ts#L196
AssertionError: expected "spy" to be called 1 times, but got 0 times
❯ tests/unit/services/process-reward-claim.test.ts:196:32
|
|
Lint & Typecheck
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/
|
|
Lint & Typecheck:
src/modules/auth/auth.controller.ts#L31
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/modules/auth/auth.controller.ts#L14
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/validation.ts#L41
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/validation.ts#L32
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/validation.ts#L23
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/rate-limit.ts#L51
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/rate-limit.ts#L20
Unexpected any. Specify a different type
|
|
Lint & Typecheck:
src/middleware/auth.ts#L13
'reply' is defined but never used. Allowed unused args must match /^_/u
|
|
Lint & Typecheck:
src/database/seed.ts#L53
'course3' is assigned a value but never used. Allowed unused vars must match /^_/u
|
|
Lint & Typecheck:
src/config/index.ts#L88
Unexpected any. Specify a different type
|
|
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/
|