Skip to content

Commit

Permalink
fix(lib): save some time on testing
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-suwala committed Jun 18, 2024
1 parent 74ddc5f commit c04e82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/user.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe("User test", () => {
})
})

test.only("should update the user even if they're not a member of a particular channel", (done) => {
test("should update the user even if they're not a member of a particular channel", (done) => {

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

View workflow job for this annotation

GitHub Actions / Test results

User test ► 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

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:109: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 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)
async function prep() {
let someUser = await chat.getUser("test-user-chatsdk1")
if (!someUser) {
Expand Down

0 comments on commit c04e82b

Please sign in to comment.