feat: offline support rework #1766
Annotations
5 errors
test
Process completed with exit code 1.
|
test/unit/client.test.js > Client WSFallback > should ignore fallback if flag is false:
test/unit/client.test.js#L625
AssertionError: expected [Function] to throw error matching /"initial WS connection could not be e…/ but got '{"message":"WS failed with code undef…'
- Expected:
/"initial WS connection could not be established","isWSFailure":true/
+ Received:
"{\"message\":\"WS failed with code undefined and reason - Unexpected server response: 301\",\"isWSFailure\":true}"
❯ test/unit/client.test.js:625:3
|
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:3309:30
❯ StreamChat._enrichAxiosOptions src/client.ts:3264:24
❯ StreamChat.doAxiosRequest src/client.ts:1149: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.
|