Skip to content

✨ feat: optimize pushChat function (#244) #663

✨ feat: optimize pushChat function (#244)

✨ feat: optimize pushChat function (#244) #663

Triggered via push June 17, 2024 02:29
Status Failure
Total duration 1m 55s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 warning
src/ProChat/__test__/demo.test.tsx > <ProChat /> > renders callbacks.tsx correctly: tests/demo.tsx#L37
Error: Snapshot `<ProChat /> > renders callbacks.tsx correctly 1` mismatched - Expected + Received @@ -2,11 +2,11 @@ <div class="ant-app" style="height: 100%; width: 100%; position: relative;" > <div - class="layoutkit-flexbox css-1euyney ant-pro-chat acss-5rxe8i ant-pro-chat-container" + class="layoutkit-flexbox css-1euyney ant-pro-chat acss-l5x2r3 ant-pro-chat-container" style="max-height: 100vh; height: 100%;" > <div class="ant-pro-chat-chat-list-container acss-1v5259w" style="height: 100%;" ❯ tests/demo.tsx:37:40
src/ProChat/store/reducers/message.test.ts > messagesReducer > addMessage > should add a new message to the state: src/ProChat/store/reducers/message.test.ts#L45
AssertionError: expected { content: 'New Message', …(5) } to deeply equal { id: 'message3', …(5) } - Expected + Received Object { "content": "New Message", "createAt": Any<Number>, "id": "message3", - "parentId": undefined, + "message": "New Message", "role": "user", "updateAt": Any<Number>, } ❯ src/ProChat/store/reducers/message.test.ts:45:57
src/ProChat/store/reducers/message.test.ts > messagesReducer > addMessage > should use the provided id when adding a new message: src/ProChat/store/reducers/message.test.ts#L72
AssertionError: expected { content: 'New Message', …(5) } to deeply equal { id: 'customId', …(5) } - Expected + Received Object { "content": "New Message", "createAt": Any<Number>, "id": "customId", - "parentId": undefined, + "message": "New Message", "role": "user", "updateAt": Any<Number>, } ❯ src/ProChat/store/reducers/message.test.ts:72:57
src/ProChat/store/reducers/message.test.ts > messagesReducer > addMessage > should use the provided parentId when adding a new message: src/ProChat/store/reducers/message.test.ts#L93
AssertionError: expected { content: 'New Message', …(6) } to deeply equal { id: 'message3', …(5) } - Expected + Received Object { "content": "New Message", "createAt": Any<Number>, "id": "message3", + "message": "New Message", "parentId": "message1", "role": "user", "updateAt": Any<Number>, } ❯ src/ProChat/store/reducers/message.test.ts:93:57
src/ProChat/store/reducers/message.test.ts > messagesReducer > addMessage > should use the provided parentId and quotaId when adding a new message: src/ProChat/store/reducers/message.test.ts#L114
AssertionError: expected { content: 'New Message', …(6) } to deeply equal { id: 'message3', …(5) } - Expected + Received Object { "content": "New Message", "createAt": Any<Number>, "id": "message3", + "message": "New Message", "parentId": "message1", "role": "user", "updateAt": Any<Number>, } ❯ src/ProChat/store/reducers/message.test.ts:114:57
test
Process completed with exit code 1.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.