Updated chat schema #4203
pull-request.yml
on: pull_request
Check for linting, formatting, and type errors
1m 29s
Checks if no unauthorized files are changed
7s
Checks if number of files changed is acceptable
7s
Base branch check
0s
Matrix: Testing Application
JSDocs comments and pipeline
0s
Annotations
6 errors and 6 warnings
Checks if no unauthorized files are changed
Process completed with exit code 1.
|
tests/resolvers/Mutation/createChat.spec.ts > resolvers -> Mutation -> createChat > throws NotFoundError message if no user exists with _id === context.userIds:
tests/resolvers/Mutation/createChat.spec.ts#L99
AssertionError: expected "translate" to be called with arguments: [ 'user.notFound' ]
Received:
1st translate call:
Array [
- "user.notFound",
+ "organization.notFound",
]
Number of calls: 1
❯ tests/resolvers/Mutation/createChat.spec.ts:99:19
|
tests/resolvers/Mutation/createChat.spec.ts > resolvers -> Mutation -> createChat > creates the directChat and returns it:
src/libraries/requestContext.ts#L103
Error: i18n is not initialized, try app.use(i18n.init);
❯ Module.translate src/libraries/requestContext.ts:103:11
❯ createChat src/resolvers/Mutation/createChat.ts:35:24
❯ tests/resolvers/Mutation/createChat.spec.ts:119:31
|
tests/resolvers/Mutation/createChat.spec.ts > resolvers -> Mutation -> createChat > creates the groupChat and returns it:
src/resolvers/Mutation/createChat.ts#L49
TypeError: userExists.includes is not a function
❯ src/resolvers/Mutation/createChat.ts:49:27
❯ createChat src/resolvers/Mutation/createChat.ts:48:44
❯ tests/resolvers/Mutation/createChat.spec.ts:145:31
|
tests/resolvers/Mutation/sendMessageToChat.spec.ts > resolvers -> Mutation -> sendMessageToDirectChat > creates the directChatMessage and returns it:
tests/resolvers/Mutation/sendMessageToChat.spec.ts#L176
AssertionError: expected { …(9) } to deeply equal ObjectContaining{…}
- Expected
+ Received
- ObjectContaining {
+ Object {
+ "__v": 0,
+ "_id": "67027c04e719f8563bb0abf4",
"chatMessageBelongsTo": "67027c04e719f8563bb0abea",
+ "createdAt": 2024-10-06T12:01:08.629Z,
+ "deletedBy": Array [],
"messageContent": "messageContent",
"sender": "67027c04e719f8563bb0abd0",
- "type": "STRING",
+ "status": "ACTIVE",
+ "updatedAt": 2024-10-06T12:01:08.629Z,
}
❯ tests/resolvers/Mutation/sendMessageToChat.spec.ts:176:38
|
Testing Application (22.x)
Process completed with exit code 1.
|
Checks if number of files changed is acceptable
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|
Checks if number of files changed is acceptable
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|
Checks if no unauthorized files are changed
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|
Checks if no unauthorized files are changed
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|
Check for linting, formatting, and type errors
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|
Check for linting, formatting, and type errors
Unexpected input(s) 'persist-crendetials', valid inputs are ['repository', 'ref', 'token', 'ssh-key', 'ssh-known-hosts', 'ssh-strict', 'ssh-user', 'persist-credentials', 'path', 'clean', 'filter', 'sparse-checkout', 'sparse-checkout-cone-mode', 'fetch-depth', 'fetch-tags', 'show-progress', 'lfs', 'submodules', 'set-safe-directory', 'github-server-url']
|