Skip to content

fix(shared): use APIError as contract between server and client #3608

fix(shared): use APIError as contract between server and client

fix(shared): use APIError as contract between server and client #3608

Triggered via pull request October 23, 2024 18:48
Status Failure
Total duration 4m 11s
Artifacts

api-pull-request.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 10 warnings
lint: services/api/src/app/error.middleware.ts#L18
Unexpected console statement
lint: services/api/src/app/error.middleware.ts#L33
Unexpected console statement
lint: services/api/src/app/error.middleware.ts#L33
Replace `'api·error'` with `"api·error"`
lint: services/api/src/io/ControllerError.ts#L111
Unexpected console statement
lint: services/api/src/io/ControllerError.ts#L112
Unexpected console statement
lint
Process completed with exit code 1.
src/routes/actors/__tests__/createActor.e2e.ts > Create Actor > Should return a 400 when 'username' is not provided: services/api/src/routes/actors/__tests__/createActor.e2e.ts#L90
AssertionError: expected 500 to deeply equal 400 - Expected + Received - 400 + 500 ❯ src/routes/actors/__tests__/createActor.e2e.ts:90:29
src/routes/actors/__tests__/editActor.e2e.ts > Edit Actor > Should return a 400: services/api/src/routes/actors/__tests__/editActor.e2e.ts#L80
AssertionError: expected 500 to deeply equal 400 - Expected + Received - 400 + 500 ❯ src/routes/actors/__tests__/editActor.e2e.ts:80:29
src/routes/areas/__tests__/createArea.e2e.ts > Create Area > Should return a 400: services/api/src/routes/areas/__tests__/createArea.e2e.ts#L52
AssertionError: expected 500 to deeply equal 400 - Expected + Received - 400 + 500 ❯ src/routes/areas/__tests__/createArea.e2e.ts:52:29
src/routes/groups-members/__tests__/createGroupMembers.e2e.ts > Create Group Member > Should return a 400: services/api/src/routes/groups-members/__tests__/createGroupMembers.e2e.ts#L80
AssertionError: expected 500 to deeply equal 400 - Expected + Received - 400 + 500 ❯ src/routes/groups-members/__tests__/createGroupMembers.e2e.ts:80:29
src/routes/keywords/__tests__/createKeyword.e2e.ts > Create Keyword > Should return a 400: services/api/src/routes/keywords/__tests__/createKeyword.e2e.ts#L60
AssertionError: expected 500 to deeply equal 400 - Expected + Received - 400 + 500 ❯ src/routes/keywords/__tests__/createKeyword.e2e.ts:60:29
test
Process completed with exit code 1.
lint: services/api/src/app/index.ts#L17
Unexpected any. Specify a different type
lint: services/api/src/bin/create-stats.ts#L23
Unexpected any. Specify a different type
lint: services/api/src/bin/create-stats.ts#L38
Unexpected any. Specify a different type
lint: services/api/src/bin/import-from-kmz.ts#L30
Unexpected any. Specify a different type
lint: services/api/src/bin/parse-tg-message.ts#L16
Unexpected any. Specify a different type
lint: services/api/src/bin/start-ctx.ts#L9
Unexpected any. Specify a different type
lint: services/api/src/bin/update-event-payload-url-refs.ts#L56
Unexpected any. Specify a different type
lint: services/api/src/bin/update-event-payload-url-refs.ts#L59
Unexpected any. Specify a different type
lint: services/api/src/bin/update-event-payload-url-refs.ts#L62
Unexpected any. Specify a different type
lint: services/api/src/context/index.ts#L128
Unexpected any. Specify a different type