element-web/test/components/views/rooms/wysiwyg_composer/components
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 correct translation function for WYSIWYG buttons (#11315) 2023-07-26 11:30:54 +00:00
FormattingButtons-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
LinkModal-test.tsx Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
PlainTextComposer-test.tsx Allow image pasting in plain mode in RTE (#11056) 2023-06-12 11:28:00 +00:00
WysiwygAutocomplete-test.tsx Update rich text editor dependency and associated changes (#11098) 2023-06-19 08:00:11 +00:00
WysiwygComposer-test.tsx Update rich text editor dependency and associated changes (#11098) 2023-06-19 08:00:11 +00:00