Skip to content

fix: broken api return values and types #1776

fix: broken api return values and types

fix: broken api return values and types #1776

Triggered via pull request May 28, 2025 10:27
Status Success
Total duration 35s
Artifacts

unit.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
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:3328:30 ❯ StreamChat._enrichAxiosOptions src/client.ts:3283: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.