Skip to content

Add update message capability in the SDK, react hooks, and demo app #1640

Add update message capability in the SDK, react hooks, and demo app

Add update message capability in the SDK, react hooks, and demo app #1640

Triggered via pull request October 24, 2024 08:17
Status Failure
Total duration 1m 51s
Artifacts

dev.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 14 warnings
format-check
Process completed with exit code 1.
test-typescript: test/react/hooks/use-messages.integration.test.tsx#L1
This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?
test-typescript: test/react/hooks/use-messages.test.tsx#L1
Argument of type '{ type: MessageEvents; message: { timestamp: Date; text: string; timeserial: string; action: string; clientId: string; roomId: string; createdAt: Date; isDeleted: Mock<Procedure>; ... 5 more ...; metadata: {}; }; }' is not assignable to parameter of type 'MessageEventPayload'.
test-typescript
Process completed with exit code 2.
test/core/chat-api.test.ts > config > calls the api with the correct protocol version: test/core/chat-api.test.ts#L30
AssertionError: expected "request" to be called with arguments: [ 'GET', …(4) ] Received: 1st request call: Array [ "GET", "/chat/v1/rooms/test/occupancy", 3, - Object {}, + undefined, undefined, ] Number of calls: 1 ❯ test/core/chat-api.test.ts:30:34 ❯ test/core/chat-api.test.ts:23:5
test/core/messages.integration.test.ts > messages integration > should be able to retrieve chat deletion in history: test/core/messages.integration.test.ts#L192
AssertionError: expected [ DefaultMessage{ …(14) } ] to deeply equal [ ObjectContaining{…} ] - Expected + Received Array [ - ObjectContaining { - "clientId": "ably-chat-js-client-6phte7", - "deletedAt": 2024-10-24T08:18:17.804Z, - "deletedBy": "ably-chat-js-client-6phte7", - "deletionDetail": Object { - "description": "Deleted message", - "metadata": undefined, + DefaultMessage { + "_calculatedTimeserial": DefaultTimeserial { + "counter": 0, + "index": 0, + "seriesId": "e7dVg0rnwBhmSR84420706", + "timestamp": 1729757897785, }, + "clientId": "ably-chat-js-client-6phte7", + "createdAt": 2024-10-24T08:18:17.785Z, + "deletedAt": undefined, + "deletedBy": undefined, + "deletionDetail": undefined, + "headers": Object {}, + "metadata": Object {}, + "roomId": "ably-chat-js-room-25u49f", "text": "Hello there!", "timeserial": "e7dVg0rnwBhmSR84420706@1729757897785-0:0", + "updateDetail": undefined, + "updatedAt": undefined, + "updatedBy": undefined, }, ] ❯ test/core/messages.integration.test.ts:192:27
test/react/hooks/use-messages.integration.test.tsx > useMessages > should delete messages correctly: test/react/hooks/use-messages.integration.test.tsx#L127
TypeError: deletionsRoomTwo[0]?.isDeleted is not a function ❯ test/react/hooks/use-messages.integration.test.tsx:127:33
test
Process completed with exit code 1.
format-check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
format-check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test-typescript
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test-typescript
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
audit
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
audit
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
demo-app
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
demo-app
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/