Skip to content

feat(lib): rm unsubscribeAll #735

feat(lib): rm unsubscribeAll

feat(lib): rm unsubscribeAll #735

GitHub Actions / Test results failed Jun 18, 2024 in 0s

22 passed, 1 failed and 0 skipped

Tests failed

❌ lib/junit.xml

23 tests were completed in 70s with 22 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
MessageDraft 11✅ 14s
User test 11✅ 1❌ 55s

✅ MessageDraft

MessageDraft should mention 2 users
  ✅ MessageDraft should mention 2 users
MessageDraft should mention 2 - 3 users next to each other
  ✅ MessageDraft should mention 2 - 3 users next to each other
MessageDraft should mention 2 - 3 users with words between second and third
  ✅ MessageDraft should mention 2 - 3 users with words between second and third
MessageDraft should reference 2 channels
  ✅ MessageDraft should reference 2 channels
MessageDraft should reference 2 channels and 2 mentions
  ✅ MessageDraft should reference 2 channels and 2 mentions
MessageDraft should reference 2 channels and 2 mentions with commas
  ✅ MessageDraft should reference 2 channels and 2 mentions with commas
MessageDraft should reference 2 channels and 2 mentions with commas - another variation
  ✅ MessageDraft should reference 2 channels and 2 mentions with commas - another variation
MessageDraft should add 2 text links and 2 plain links
  ✅ MessageDraft should add 2 text links and 2 plain links
MessageDraft should mix every type of message part
  ✅ MessageDraft should mix every type of message part
MessageDraft should mix every type of message part - variant 2
  ✅ MessageDraft should mix every type of message part - variant 2
MessageDraft should reference 3 channels and 3 mentions with no order
  ✅ MessageDraft should reference 3 channels and 3 mentions with no order

❌ User test

User test Should automatically create chat user while initializing
  ✅ User test Should automatically create chat user while initializing
User test Should be able to create and fetch user
  ✅ User test Should be able to create and fetch user
User test Should be able to update user
  ✅ User test Should be able to update user
User test Should be able to delete user
  ✅ User test Should be able to delete user
User test Should stream user updates and invoke the callback
  ✅ User test Should stream user updates and invoke the callback
User test should update the user even if they're a member of a particular channel
  ❌ User test should update the user even if they're a member of a particular channel
	Error: thrown: "Exceeded timeout of 10000 ms for a test while waiting for `done()` to be called.
User test should update the user even if they're not a member of a particular channel
  ✅ User test should update the user even if they're not a member of a particular channel
User test should report a user
  ✅ User test should report a user
User test Should be able to create, fetch, and validate multiple users
  ✅ User test Should be able to create, fetch, and validate multiple users
User test Should fail to update a non-existent user
  ✅ User test Should fail to update a non-existent user
User test Should fail to delete a non-existent user
  ✅ User test Should fail to delete a non-existent user
User test Should apply filter to 'getMemberships'
  ✅ User test Should apply filter to 'getMemberships'

Annotations

Check failure on line 66 in lib/tests/user.test.ts

See this annotation in the file changed.

@github-actions github-actions / Test results

User test ► User test should update the user even if they're a member of a particular channel ► User test should update the user even if they're a member of a particular channel

Failed test found in:
  lib/junit.xml
Error:
  Error: thrown: "Exceeded timeout of 10000 ms for a test while waiting for `done()` to be called.
Raw output
Error: thrown: "Exceeded timeout of 10000 ms for a test while waiting for `done()` to be called.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
    at test (/home/runner/work/js-chat/js-chat/lib/tests/user.test.ts:66:3)
    at _dispatchDescribe (/home/runner/work/js-chat/js-chat/node_modules/jest-circus/build/index.js:91:26)
    at describe (/home/runner/work/js-chat/js-chat/node_modules/jest-circus/build/index.js:55:5)
    at Object.describe (/home/runner/work/js-chat/js-chat/lib/tests/user.test.ts:5:1)
    at Runtime._execModule (/home/runner/work/js-chat/js-chat/node_modules/jest-runtime/build/index.js:1439:24)
    at Runtime._loadModule (/home/runner/work/js-chat/js-chat/node_modules/jest-runtime/build/index.js:1022:12)
    at Runtime.requireModule (/home/runner/work/js-chat/js-chat/node_modules/jest-runtime/build/index.js:882:12)
    at jestAdapter (/home/runner/work/js-chat/js-chat/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runTestInternal (/home/runner/work/js-chat/js-chat/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/work/js-chat/js-chat/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/work/js-chat/js-chat/node_modules/jest-runner/build/testWorker.js:106:12)