fix(response): better server response #79
TestFormatLint.yml
on: pull_request
changes
32s
Test Services
1m 50s
Test resolvers
1m 35s
Test controllers
1m 30s
Test the rest
1m 20s
Test web
2m 2s
Format & Lint
0s
Annotations
20 errors and 2 warnings
signUp › success:
src/app/utils/test.utils.ts#L113
expect(received).resolves.toContain(expected) // indexOf
Expected substring: "ut2hsot@gmaill.vn"
Received string: "{\"statusCode\":400,\"message\":\"VCLcrm_Invalid_ID\"}"
at node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:174:22
at execute (src/app/utils/test.utils.ts:113:43)
at Object.<anonymous> (src/enterprise/employee/employee.controller.spec.ts:76:16)
|
assign › success:
src/app/utils/test.utils.ts#L113
expect(received).resolves.toEqual(expected) // deep equality
Expected: ArrayContaining [StringContaining "access", StringContaining "refresh", StringContaining "session"]
Received: ["access=; Max-Age=0; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax", "refresh=; Max-Age=0; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=Lax"]
at node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:174:22
at execute (src/app/utils/test.utils.ts:113:43)
at Object.<anonymous> (src/university/faculty/faculty.controller.spec.ts:34:16)
|
Test controllers
Process completed with exit code 1.
|
assignReciever › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
assignRecieverMany › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
readNotification › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
readNotificationMany › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
listAllNotifications › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
listAllNotifications › success with isRead filterring:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async assignNoti (src/notification/notification.resolver.spec.utils.ts:14:9)
at async Object.<anonymous> (src/notification/reciever/reciever.resolver.spec.ts:67:8)
|
assignEventTag › success:
src/app/utils/test.utils.ts#L101
expect(received).resolves.toHaveProperty()
Received promise rejected instead of resolved
Rejected to value: [Error: Unauthorized]
at expect (node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)
at execute (src/app/utils/test.utils.ts:101:14)
at Object.<anonymous> (src/event/tag/tag.resolver.spec.ts:61:16)
|
assignEventTag › success when already assigned:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async Object.<anonymous> (src/event/tag/tag.resolver.spec.ts:76:3)
|
attachEventTag › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async Object.<anonymous> (src/event/tag/tag.resolver.spec.ts:101:4)
|
listAllTags › success:
src/app/utils/test.utils.ts#L182
Unauthorized
at src/app/utils/test.utils.ts:182:9
at async Object.<anonymous> (src/event/tag/tag.resolver.spec.ts:129:4)
|
AuthService › changePassword:
src/app/utils/test.utils.ts#L101
expect(received).resolves.toBeInstanceOf()
Received promise rejected instead of resolved
Rejected to value: [ServerException: NpBRit_Invalid_Password]
at expect (node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)
at execute (src/app/utils/test.utils.ts:101:14)
at Object.<anonymous> (src/auth/auth.service.spec.ts:84:16)
|
assign:
src/app/utils/test.utils.ts#L113
expect(received).resolves.toHaveLength(expected)
Expected length: 1
Received length: 0
Received array: []
at node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:174:22
at execute (src/app/utils/test.utils.ts:113:43)
at onFinish (src/user/user.service.spec.ts:24:17)
at execute (src/app/utils/test.utils.ts:116:22)
at async Object.<anonymous> (src/user/user.service.spec.ts:21:2)
|
modify:
src/app/utils/test.utils.ts#L113
expect(received).resolves.toHaveProperty(path, value)
Expected path: "baseUser.name"
Expected value: "btP0hxCSFQZwZSZOrn4J"
Received value: "UserService_33eeU_ZlUG7"
at node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:174:22
at execute (src/app/utils/test.utils.ts:113:43)
at async Object.<anonymous> (src/user/user.service.spec.ts:51:2)
|
updateRole:
src/app/utils/test.utils.ts#L113
expect(received).resolves.toHaveProperty(path, value)
Expected path: "role"
Expected value: "admin"
Received value: "undefined"
at node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:174:22
at execute (src/app/utils/test.utils.ts:113:43)
at async Object.<anonymous> (src/user/user.service.spec.ts:76:2)
|
BaseUserService › modify:
src/app/utils/test.utils.ts#L101
expect(received).resolves.toBeInstanceOf()
Received promise rejected instead of resolved
Rejected to value: [ServerException: tZ1YSZ_Invalid_ID]
at expect (node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)
at execute (src/app/utils/test.utils.ts:101:14)
at Object.<anonymous> (src/app/app.service.spec.ts:32:16)
|
assign:
src/app/utils/test.utils.ts#L101
expect(received).resolves.toBeDefined()
Received promise rejected instead of resolved
Rejected to value: [QueryFailedError: insert or update on table "auth_hook" violates foreign key constraint "FK_822ee029e97cb60ce8f540911ec"]
at expect (node_modules/.pnpm/expect@29.7.0/node_modules/expect/build/index.js:113:15)
at execute (src/app/utils/test.utils.ts:101:14)
at Object.<anonymous> (src/app/hook/hook.service.spec.ts:23:15)
|
Test Services
Process completed with exit code 1.
|
changes
'base' input parameter is ignored when action is triggered by pull request event
|
Test the rest
No files were found with the provided path: ./reports/etc.xml. No artifacts will be uploaded.
|