element-web-Github/test/components/views/settings
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__ Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
account Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
devices Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
discovery Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
notifications Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
shared Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
tabs Update Jest to more recent release (#11409) 2023-08-16 10:20:48 +00:00
AddPrivilegedUsers-test.tsx Conform more of the codebase to strictNullChecks (#10602) 2023-04-17 08:31:58 +01:00
AvatarSetting-test.tsx Improve avatar settings accessibility (#9985) 2023-01-27 07:57:24 +00:00
ChangePassword-test.tsx Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
CrossSigningPanel-test.tsx Use crypto.isCrossSigningReady in CrossSigningPanel (#11080) 2023-06-14 09:46:14 +00:00
CryptographyPanel-test.tsx Add MatrixClientPeg::safeGet and use it in tests (#10985) 2023-06-05 18:12:23 +01:00
EventIndexPanel-test.tsx Enable strictPropertyInitialization (#11203) 2023-07-07 14:46:12 +01:00
FontScalingPanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
JoinRuleSettings-test.tsx Allow setting room join rule to knock (#11248) 2023-07-19 10:48:24 +00:00
KeyboardShortcut-test.tsx Conform more code to strict null checking (#10169) 2023-02-16 09:38:44 +00:00
Notifications-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00
SecureBackupPanel-test.tsx Update SecureBackupPanel to use getCrypto() (#11322) 2023-07-28 09:24:28 +00:00
SettingsFieldset-test.tsx Update usages of test utilities preferring RTL (#10203) 2023-02-22 10:52:55 +00:00
ThemeChoicePanel-test.tsx Improve randomString mock for better snapshots (#11375) 2023-08-09 09:39:48 +01:00