Skip to content

fix: chat destroy handler on chat close [WTEL-5515](https://webitel.a… #622

fix: chat destroy handler on chat close [WTEL-5515](https://webitel.a…

fix: chat destroy handler on chat close [WTEL-5515](https://webitel.a… #622

Triggered via push November 26, 2024 14:58
Status Failure
Total duration 1m 35s
Artifacts

main.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors
Unhandled error: src/features/modules/chat/store/chat.js#L103
TypeError: Cannot read properties of undefined (reading 'closedChatsList') ❯ Object.OPEN_CHAT src/features/modules/chat/store/chat.js:103:30 ❯ src/features/modules/chat/store/__tests__/chats.spec.js:93:24 ❯ node_modules/@vitest/runner/dist/index.js:146:14 ❯ node_modules/@vitest/runner/dist/index.js:61:7 ❯ runTest node_modules/@vitest/runner/dist/index.js:960:17 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runFiles node_modules/@vitest/runner/dist/index.js:1173:5 ❯ startTests node_modules/@vitest/runner/dist/index.js:1182:3 This error originated in "src/features/modules/chat/store/__tests__/chats.spec.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "src/features/modules/chat/store/__tests__/chats.spec.js". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
src/features/modules/chat/store/__tests__/chats.spec.js > features/chat store: actions > OPEN_CHAT dispatches SET_WORKSPACE action with passed chat as param: src/features/modules/chat/store/__tests__/chats.spec.js#L94
AssertionError: expected "spy" to be called with arguments: [ 'SET_WORKSPACE', { id: '1', …(8) } ] Received: Number of calls: 0 ❯ src/features/modules/chat/store/__tests__/chats.spec.js:94:30
test
Process completed with exit code 1.