Skip to content

refactor

refactor #241

Triggered via pull request September 22, 2024 05:05
@wajehtwajeht
synchronize #74
refactor
Status Failure
Total duration 53s
Artifacts

ci.yml

on: pull_request
Matrix: Prettier format
Matrix: ESLint
Matrix: Unit tests
Deploy to production
0s
Deploy to production
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 13 warnings
ESLint (19.x): postcss.config.js#L4
A `require()` style import is forbidden
ESLint (19.x): postcss.config.js#L5
A `require()` style import is forbidden
ESLint (19.x): src/api/federations/federations.services.ts#L62
Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong
ESLint (19.x): src/api/federations/federations.services.ts#L65
Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong
ESLint (19.x): src/api/federations/federations.services.ts#L87
Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong
ESLint (19.x): src/api/federations/federations.services.ts#L90
Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong
ESLint (19.x): tailwind.config.js#L2
A `require()` style import is forbidden
ESLint (19.x)
Process completed with exit code 1.
src/app.middlewares.test.ts > notFoundHandler > renders "not-found.html" if the URL does not start with "/api/": src/app.middlewares.test.ts#L36
TypeError: notFoundHandler is not a function ❯ src/app.middlewares.test.ts:36:5
src/app.middlewares.test.ts > notFoundHandler > returns a JSON response if the URL starts with "/api/": src/app.middlewares.test.ts#L47
TypeError: notFoundHandler is not a function ❯ src/app.middlewares.test.ts:47:5
src/app.middlewares.test.ts > validate > successfully validates and calls next if no errors: src/app.middlewares.test.ts#L94
TypeError: validate is not a function ❯ src/app.middlewares.test.ts:94:24
src/app.middlewares.test.ts > validate > catches ZodError and flashes the error message, then redirects: src/app.middlewares.test.ts#L115
TypeError: validate is not a function ❯ src/app.middlewares.test.ts:115:24
src/app.middlewares.test.ts > validate > calls next with error if non-ZodError occurs: src/app.middlewares.test.ts#L128
TypeError: validate is not a function ❯ src/app.middlewares.test.ts:128:24
src/app.middlewares.test.ts > handleHostname > sets hostname from redis if available: src/app.middlewares.test.ts#L166
TypeError: handleHostname is not a function ❯ src/app.middlewares.test.ts:166:11
src/app.middlewares.test.ts > handleHostname > sets hostname using getHostName if not available in redis: src/app.middlewares.test.ts#L187
TypeError: handleHostname is not a function ❯ src/app.middlewares.test.ts:187:11
src/utils/admin-user.test.ts > init > should create a new admin user if one does not exist: src/utils/admin-user.test.ts#L74
TypeError: Cannot read properties of undefined (reading 'NAME') ❯ src/utils/admin-user.test.ts:74:19
src/utils/admin-user.test.ts > init > should not create a new admin user if one exists: src/utils/admin-user.test.ts#L125
TypeError: Cannot read properties of undefined (reading 'EMAIL') ❯ src/utils/admin-user.test.ts:125:62
src/utils/admin-user.test.ts > init > should log an error if anything goes wrong: src/utils/admin-user.test.ts#L135
AssertionError: expected "LOG" to be called with arguments: [ Error: Error message ] Received: Number of calls: 0 ❯ src/utils/admin-user.test.ts:135:22
Prettier format (19.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ESLint (19.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
ESLint (19.x): src/api/api.middlewares.ts#L83
'error' is defined but never used. Allowed unused caught errors must match /^_/u
ESLint (19.x): src/api/auth/auth.controllers.test.ts#L26
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.controllers.test.ts#L29
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.controllers.test.ts#L44
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.controllers.test.ts#L49
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.services.ts#L57
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.services.ts#L81
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.services.ts#L107
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.services.ts#L126
Unexpected any. Specify a different type
ESLint (19.x): src/api/auth/auth.services.ts#L152
Unexpected any. Specify a different type
Unit tests (19.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/