element-web/test/components/views/rooms
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__ Allow knocking rooms (#11353) 2023-08-07 06:27:09 +00:00
EventTile Switch to importing matrix-js-sdk from its main export (#11360) 2023-08-03 12:56:30 +00:00
NotificationBadge Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
wysiwyg_composer Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
BasicMessageComposer-test.tsx Make keyboard handling in and out of autocomplete completions consistent (#11344) 2023-08-01 09:06:37 +00:00
EditMessageComposer-test.tsx Stabilize support for MSC3952: intentional mentions (#10967) 2023-07-11 22:29:54 +00:00
EventTile-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
ExtraTile-test.tsx Refactor ExtraTile to use functional components (#10191) 2023-02-23 11:57:37 +00:00
LegacyRoomHeader-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
MemberList-test.tsx Switch to importing models/{event-timeline{,set},user,device,event-status} from main js-sdk export (#11368) 2023-08-08 07:16:04 +00:00
MessageComposer-test.tsx Switch to importing more things from the main js-sdk export (#11394) 2023-08-14 08:58:55 +00:00
MessageComposerButtons-test.tsx Replace some enzyme tests by @testing-library/react (#9822) 2022-12-23 10:46:14 +00:00
NewRoomIntro-test.tsx Eliminate the use of MatrixClientPeg in utils (#10910) 2023-05-23 16:24:12 +01:00
PinnedEventTile-test.tsx Apply strictNullChecks to src/components/views/rooms/* (#10875) 2023-05-21 23:53:23 +00:00
ReadReceiptGroup-test.tsx Make more code conform to strict null checks (#10219 2023-02-24 15:28:40 +00:00
RoomHeader-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
RoomList-test.tsx Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
RoomListHeader-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
RoomPreviewBar-test.tsx Allow knocking rooms (#11353) 2023-08-07 06:27:09 +00:00
RoomPreviewCard-test.tsx Switch to importing client from main js-sdk export (#11370) 2023-08-09 07:18:41 +00:00
RoomTile-test.tsx Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
SearchBar-test.tsx Apply prettier formatting 2022-12-12 12:24:14 +01:00
SearchResultTile-test.tsx Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
SendMessageComposer-test.tsx Allow knocking rooms (#11353) 2023-08-07 06:27:09 +00:00
ThirdPartyMemberInfo-test.tsx Apply strictNullChecks to src/components/views/rooms/* (#10875) 2023-05-21 23:53:23 +00:00
VoiceRecordComposerTile-test.tsx Stabilize support for MSC3952: intentional mentions (#10967) 2023-07-11 22:29:54 +00:00