Skip to content

feat(backend): presence/typing tests and file message handling #194

feat(backend): presence/typing tests and file message handling

feat(backend): presence/typing tests and file message handling #194

Re-run triggered July 1, 2026 17:49
Status Failure
Total duration 38s
Artifacts

backend-ci.yml

on: pull_request
Format · Lint · Test
30s
Format · Lint · Test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
src/__tests__/uploads.test.ts > Thumbnail handling — issue #230 > isThumbnail defaults to false when not provided: apps/backend/src/__tests__/uploads.test.ts#L285
TypeError: Cannot read properties of undefined (reading '0') ❯ src/__tests__/uploads.test.ts:285:43
src/__tests__/uploads.test.ts > Thumbnail handling — issue #230 > accepts isThumbnail=true and inserts row with isThumbnail flag: apps/backend/src/__tests__/uploads.test.ts#L271
AssertionError: expected 400 to be 201 // Object.is equality - Expected + Received - 201 + 400 ❯ src/__tests__/uploads.test.ts:271:24
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > accepts application/pdf: apps/backend/src/__tests__/uploads.test.ts#L187
AssertionError: expected 400 to be 201 // Object.is equality - Expected + Received - 201 + 400 ❯ src/__tests__/uploads.test.ts:187:24
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > accepts image/png: apps/backend/src/__tests__/uploads.test.ts#L178
AssertionError: expected 400 to be 201 // Object.is equality - Expected + Received - 201 + 400 ❯ src/__tests__/uploads.test.ts:178:24
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > inserts file row with status pending: apps/backend/src/__tests__/uploads.test.ts#L168
TypeError: Cannot read properties of undefined (reading '0') ❯ src/__tests__/uploads.test.ts:168:49
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > returns 403 when caller is not a conversation member: apps/backend/src/__tests__/uploads.test.ts#L157
AssertionError: expected 400 to be 403 // Object.is equality - Expected + Received - 403 + 400 ❯ src/__tests__/uploads.test.ts:157:24
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > returns 415 for a disallowed MIME type: apps/backend/src/__tests__/uploads.test.ts#L149
AssertionError: expected 400 to be 415 // Object.is equality - Expected + Received - 415 + 400 ❯ src/__tests__/uploads.test.ts:149:24
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > uploadUrl is a non-empty string: apps/backend/src/__tests__/uploads.test.ts#L121
TypeError: Cannot read properties of undefined (reading 'length') ❯ src/__tests__/uploads.test.ts:121:31
src/__tests__/uploads.test.ts > POST /uploads — issue #226 > returns 201 with fileId and uploadUrl for a valid request: apps/backend/src/__tests__/uploads.test.ts#L110
AssertionError: expected 400 to be 201 // Object.is equality - Expected + Received - 201 + 400 ❯ src/__tests__/uploads.test.ts:110:24
src/__tests__/presence.typing.test.ts: apps/backend/src/services/presence.ts#L22
Error: [vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock ❯ src/services/presence.ts:22:1 Caused by: Caused by: ReferenceError: Cannot access 'mockFindFirst' before initialization ❯ src/__tests__/presence.typing.test.ts:28:20
Format · 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, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L86
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L82
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L80
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L79
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L72
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.test.ts#L67
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.reconciliation.test.ts#L40
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.reconciliation.test.ts#L39
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.reconciliation.test.ts#L38
Unexpected any. Specify a different type
Format · Lint · Test: apps/backend/src/__tests__/presence.reconciliation.test.ts#L37
Unexpected any. Specify a different type