Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This test failed when ran individually, same as after the clearAllMocks call Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
…ny other way Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
…ch-mock & fix typo Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
aa0562f to
466de41
Compare
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
466de41 to
54ee44c
Compare
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
dbkr
reviewed
Jan 13, 2026
Member
Author
dbkr
approved these changes
Jan 13, 2026
Member
dbkr
left a comment
There was a problem hiding this comment.
Otherwise lgtm - phew, good to get this done!
| vi.mocked(client.http.authedRequest).mockImplementation(function () { | ||
| return new Promise(() => {}); | ||
| }); | ||
| client.stopClient(); |
Member
There was a problem hiding this comment.
Do we still need to do this or does vitest make it unnecessary?
Member
Author
There was a problem hiding this comment.
Depends on the side of the test file, the thread gets discarded between tests but a huge test file may benefit from it. Unfortunately any unhandled exceptions (such as those from a fetch being aborted) can upset the test during cleanup.
andybalaam
approved these changes
Jan 13, 2026
…chguy/vitest Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> # Conflicts: # knip.ts # package.json # spec/integ/crypto/cross-signing.spec.ts # spec/integ/crypto/crypto.spec.ts # spec/integ/crypto/device-dehydration.spec.ts # spec/integ/crypto/history-sharing.spec.ts # spec/integ/crypto/megolm-backup.spec.ts # spec/integ/crypto/olm-utils.ts # spec/integ/crypto/rust-crypto.spec.ts # spec/integ/crypto/state-events.spec.ts # spec/integ/crypto/to-device-messages.spec.ts # spec/integ/crypto/verification.spec.ts # spec/integ/matrix-client-syncing-errors.spec.ts # spec/integ/rendezvous/MSC4108SignInWithQR.spec.ts # spec/integ/sliding-sync-sdk.spec.ts # spec/setupTests.ts # spec/test-utils/AccountDataAccumulator.ts # spec/test-utils/E2EKeyReceiver.ts # spec/test-utils/E2EKeyResponder.ts # spec/test-utils/E2EOTKClaimResponder.ts # spec/test-utils/SyncResponder.ts # spec/test-utils/mockEndpoints.ts # spec/unit/embedded.spec.ts # spec/unit/event-timeline-set.spec.ts # spec/unit/http-api/fetch.spec.ts # spec/unit/http-api/utils.spec.ts # spec/unit/login.spec.ts # spec/unit/matrix-client.spec.ts # spec/unit/matrixrtc/CallMembership.spec.ts # spec/unit/matrixrtc/MatrixRTCSession.spec.ts # spec/unit/matrixrtc/MembershipManager.spec.ts # spec/unit/matrixrtc/mocks.ts # spec/unit/oidc/authorize.spec.ts # spec/unit/oidc/register.spec.ts # spec/unit/oidc/tokenRefresher.spec.ts # spec/unit/rendezvous/MSC4108RendezvousSession.spec.ts # spec/unit/room-hierarchy.spec.ts # spec/unit/room-member.spec.ts # spec/unit/room.spec.ts # spec/unit/rust-crypto/KeyClaimManager.spec.ts # spec/unit/rust-crypto/OutgoingRequestProcessor.spec.ts # spec/unit/rust-crypto/PerSessionKeyBackupDownloader.spec.ts # spec/unit/rust-crypto/backup.spec.ts # spec/unit/rust-crypto/rust-crypto.spec.ts # spec/unit/secret-storage.spec.ts # spec/unit/webrtc/groupCall.spec.ts # yarn.lock
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
BillCarsonFr
approved these changes
Jan 15, 2026
Member
BillCarsonFr
left a comment
There was a problem hiding this comment.
Looked at the voip part. Thanks for going through that 🙌
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Depends on #5136
Fairly simple transition:
@fetch-mock/jest->@fetch-mock/vitestjest->vimostlySome smaller tweaks which should be obvious
Tests run much faster locally with significantly less memory pressure, in CI they go from about 3m -> 2m