Skip to content

feat: handle command injection optionally #1772

feat: handle command injection optionally

feat: handle command injection optionally #1772

Triggered via pull request May 28, 2025 08:15
Status Failure
Total duration 38s
Artifacts

unit.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
test
Process completed with exit code 1.
test/unit/MessageComposer/textComposer.test.ts > TextComposer > constructor > should initialize with default config: test/unit/MessageComposer/textComposer.test.ts#L106
AssertionError: expected { command: null, …(3) } to deeply equal { mentionedUsers: [], text: '', …(1) } - Expected + Received @@ -1,6 +1,7 @@ { + "command": null, "mentionedUsers": [], "selection": { "end": 0, "start": 0, }, ❯ test/unit/MessageComposer/textComposer.test.ts:106:67
Unhandled error: test/unit/connection_fallback.test.js#L240
Error: Error ❯ Object.rejects node_modules/sinon/pkg/sinon-esm.js:960:22 ❯ Object.proto.<computed> [as rejects] node_modules/sinon/pkg/sinon-esm.js:616:12 ❯ test/unit/connection_fallback.test.js:240:6 ❯ node_modules/@vitest/runner/dist/index.js:103:11 ❯ node_modules/@vitest/runner/dist/index.js:596:26 ❯ node_modules/@vitest/runner/dist/index.js:879:20 ❯ runWithTimeout node_modules/@vitest/runner/dist/index.js:852:10 ❯ runTest node_modules/@vitest/runner/dist/index.js:1360:12 ❯ processTicksAndRejections node:internal/process/task_queues:105:5 This error originated in "test/unit/connection_fallback.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: test/unit/connection_fallback.test.js#L238
Error: Error ❯ Object.rejects node_modules/sinon/pkg/sinon-esm.js:960:22 ❯ Object.proto.<computed> [as rejects] node_modules/sinon/pkg/sinon-esm.js:616:12 ❯ test/unit/connection_fallback.test.js:238:6 ❯ node_modules/@vitest/runner/dist/index.js:103:11 ❯ node_modules/@vitest/runner/dist/index.js:596:26 ❯ node_modules/@vitest/runner/dist/index.js:879:20 ❯ runWithTimeout node_modules/@vitest/runner/dist/index.js:852:10 ❯ runTest node_modules/@vitest/runner/dist/index.js:1360:12 ❯ processTicksAndRejections node:internal/process/task_queues:105:5 This error originated in "test/unit/connection_fallback.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: src/token_manager.ts#L152
Error: Both secret and user tokens are not set. Either client.connectUser wasn't called or client.disconnect was called ❯ TokenManager.getToken src/token_manager.ts:152:11 ❯ StreamChat._getToken src/client.ts:3326:30 ❯ StreamChat._enrichAxiosOptions src/client.ts:3281:24 ❯ StreamChat.doAxiosRequest src/client.ts:1166:32 ❯ processTicksAndRejections node:internal/process/task_queues:105:5 ❯ Channel.query src/channel.ts:1413:19 This error originated in "test/unit/channel.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.