element-web/test/components/views
Richard van der Hoff 7a6d81c3b8
Update Jest to more recent release (#11409)
* Update Jest to more recent release

I want to use things like `jest.advanceTimersByTimeAsync`

* more jest updates

* add dep on types/prettier

* fix LegacyRoomHeader-test

* fix MatrixChat-test

* fix RoomView-test

* fix PollHistory-test

* update SidebarUserSettingsTab-test

* fix PipContainer-test

* fix UserOnboardingPage-test

* fix WidgetContextMenu-test.tsx

* Avoid `mockImplementation` for mock `matchMedia` impl

`mockImplementation` is (now) reset by `jest.resetAllMocks` and
`jest.restoreAllMocks`, which we don't really want here.

Fixes `theme-test`

* Move `mediaDevices` mock out of `setupManualMocks`

This doesn't work well in test suites with multiple tests, because the
`mockReturnValue` is reset for subsequent tests.

In any case, having it mocked out automagically is *magical*. Let's make it
opt-in.

* fix FormattingButtons-test.tsx

* fix DeviceListenerTest

* fix RoomTile-test
2023-08-16 10:20:48 +00:00
..
audio_messages Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
auth Make existing and new issue URLs configurable (#10710) 2023-04-26 09:36:00 +00:00
avatars Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
beacon Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
beta Apply prettier formatting 2022-12-12 12:24:14 +01:00
context_menus Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
dialogs Allow managing room knocks (#11404) 2023-08-16 08:16:19 +00:00
elements Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
emojipicker Fix regression in emoji picker order mangling after clearing filter (#10854) 2023-05-11 13:24:39 +00:00
location Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
messages Move mediaDevices mock out of setupManualMocks (#11413) 2023-08-16 08:29:34 +00:00
polls/pollHistory Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
right_panel Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
rooms Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
settings Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
spaces Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
toasts Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
typography Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
user-onboarding Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
voip Move mediaDevices mock out of setupManualMocks (#11413) 2023-08-16 08:29:34 +00:00
Validation-test.ts Apply prettier formatting 2022-12-12 12:24:14 +01:00