Skip to content

chore(backend): add unit tests for network passphrase configuration. #315

chore(backend): add unit tests for network passphrase configuration.

chore(backend): add unit tests for network passphrase configuration. #315

Triggered via pull request April 23, 2026 17:55
Status Failure
Total duration 35s
Artifacts

ci.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
build (20): src/middleware/errorHandler.ts#L37
Cannot redeclare block-scoped variable 'message'.
build (20): src/controllers/depositController.test.ts#L435
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L387
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L355
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L325
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L296
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L237
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/controllers/depositController.test.ts#L109
Argument of type '{ id: string; userId: any; network: string; contractId: string; createdAt: Date; updatedAt: Date; }' is not assignable to parameter of type 'Vault | Promise<Vault | null> | null'.
build (20): src/config/index.ts#L108
Property 'BCRYPT_COST_FACTOR' does not exist on type '{ PORT: number; NODE_ENV: "production" | "development" | "test"; DATABASE_URL: string; DB_POOL_MAX: number; DB_IDLE_TIMEOUT_MS: number; DB_CONN_TIMEOUT_MS: number; DB_HOST: string; DB_PORT: number; ... 33 more ...; TRANSACTION_TIMEOUT?: number | undefined; }'.
build (20): src/config/env.test.ts#L2
Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './env.js'?
build (20)
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/
build (20): src/__tests__/validate.test.ts#L152
Unexpected any. Specify a different type
build (20): src/__tests__/validate.test.ts#L2
'app' is defined but never used
build (20): src/__tests__/userUsage.test.ts#L90
Unexpected any. Specify a different type
build (20): src/__tests__/userUsage.test.ts#L89
Unexpected any. Specify a different type
build (20): src/__tests__/userUsage.test.ts#L7
'mockUser' is assigned a value but never used
build (20): src/__tests__/security-headers.test.ts#L9
'assert' is defined but never used
build (20): src/__tests__/schema-drift.test.ts#L154
'expectedTypeExports' is assigned a value but never used
build (20): src/__tests__/ipAllowlist.test.ts#L427
Unexpected any. Specify a different type
build (20): src/__tests__/ipAllowlist.test.ts#L380
Unexpected any. Specify a different type
build (20): src/__tests__/ipAllowlist.test.ts#L355
Unexpected any. Specify a different type