element-web/test/components/views/settings/tabs
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__ split SettingsSection out of SettingsTab, replace usage (#10735) 2023-04-30 22:37:40 +00:00
room Allow managing room knocks (#11404) 2023-08-16 08:16:19 +00:00
user Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
SettingsTab-test.tsx split SettingsSection out of SettingsTab, replace usage (#10735) 2023-04-30 22:37:40 +00:00