element-web-Github/test/components/views/context_menus
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
..
__snapshots__ Use semantic list elements for menu lists and tab lists (#10902) 2023-05-15 13:33:49 +00:00
ContextMenu-test.tsx Explicitly specify all children props (#10312) 2023-03-08 13:28:07 +00:00
EmbeddedPage-test.tsx Move from browser-request to fetch (#9345) 2022-10-12 18:59:07 +01:00
MessageContextMenu-test.tsx Switch to importing more things from the main js-sdk export (#11394) 2023-08-14 08:58:55 +00:00
RoomContextMenu-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
RoomGeneralContextMenu-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
SpaceContextMenu-test.tsx Fix home/all rooms context menu in space panel (#11350) 2023-08-01 15:26:14 +00:00
ThreadListContextMenu-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
WidgetContextMenu-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00