element-web/test/unit-tests
Michael Telatynski b87437d439
Improve performance of RoomContext in RoomHeader (#28574)
* Improve performance of RoomContext in RoomHeader

This allows a component to subscribe to only part of the RoomContext so they do not need to re-render on every single change

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Prettier

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2024-12-02 09:49:52 +00:00
..
__snapshots__ Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
accessibility Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
actions/handlers
async-components Use React Suspense when rendering async modals (#28386) 2024-11-12 21:19:11 +00:00
audio
autocomplete
components Improve performance of RoomContext in RoomHeader (#28574) 2024-12-02 09:49:52 +00:00
contexts Migrate to stylistic 2024-10-18 14:34:01 +01:00
customisations
dispatcher
editor Fix markdown escaping wrongly passing html through (#28363) 2024-11-04 11:31:44 +00:00
events Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
hooks Update to React 18 (#24763) 2024-10-21 13:50:06 +00:00
i18n
images
integrations
models Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
modules Iterate 2024-10-15 16:22:11 +01:00
notifications
settings
stores Merge branch 'develop' of https://github.com/vector-im/element-web into dbkr/stateafter 2024-11-27 10:47:35 +00:00
toasts Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
utils Merge branch 'develop' of https://github.com/vector-im/element-web into dbkr/stateafter 2024-11-27 10:47:35 +00:00
vector Migrate to React 18 createRoot API (#28256) 2024-11-20 13:29:23 +00:00
voice-broadcast Merge branch 'develop' of https://github.com/vector-im/element-web into dbkr/stateafter 2024-11-27 10:47:35 +00:00
widgets
Avatar-test.ts
ContentMessages-test.ts Replace MatrixClient.isRoomEncrypted by MatrixClient.CryptoApi.isEncryptionEnabledInRoom in ContentMessages.ts (#28238) 2024-10-18 14:44:56 +00:00
createRoom-test.ts
DecryptionFailureTracker-test.ts Add PostHog codes for trust requirement failures (#28292) 2024-10-28 13:16:48 +00:00
DeviceListener-test.ts Use CryptoApi.getKeyBackupInfo instead of deprecated MatrixClient.getKeyBackupVersion (#28450) 2024-11-25 09:30:42 +00:00
email-test.ts
favicon-test.ts
HtmlUtils-test.tsx
Image-test.ts
KeyBindingsManager-test.ts
languageHandler-test.tsx
LegacyCallHandler-test.ts
Lifecycle-test.ts Fix test 2024-10-18 13:38:25 +01:00
linkify-matrix-test.ts Update linkify to v4.1.4 (#28560) 2024-11-26 18:11:39 +00:00
Markdown-test.ts
MatrixClientPeg-test.ts Remove Features.RustCrypto (#28582) 2024-11-27 16:56:20 +00:00
MediaDeviceHandler-test.ts
Modal-test.ts
Notifier-test.ts Merge branch 'develop' of https://github.com/vector-im/element-web into dbkr/stateafter 2024-11-27 10:47:35 +00:00
PosthogAnalytics-test.ts
PreferredRoomVersions-test.ts
README.md
Reply-test.ts Remove reply fallbacks as per merged MSC2781 (#28406) 2024-11-13 14:11:20 +00:00
RoomNotifs-test.ts Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
Rooms-test.ts
ScalarAuthClient-test.ts
SdkConfig-test.ts
SecurityManager-test.ts Reset cross-signing before backup when resetting both (#28402) 2024-11-19 03:17:24 +00:00
SlashCommands-test.tsx Remove references to MatrixClient.crypto (#28204) 2024-10-17 08:50:44 +01:00
SlidingSyncManager-test.ts
submit-rageshake-test.ts
SupportedBrowser-test.ts Update dependency caniuse-lite to v1.0.30001684 (#28559) 2024-11-27 09:38:01 +00:00
Terms-test.tsx Migrate to stylistic 2024-10-18 14:34:01 +01:00
TestSdkContext.ts Update all non-major dependencies (#28556) 2024-12-02 09:39:36 +00:00
TextForEvent-test.ts
theme-test.ts
TimezoneHandler-test.ts
Unread-test.ts Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
UserActivity-test.ts
useTopic-test.tsx Update calls to addEventToTimeline and addLiveEvents for new signature 2024-11-06 14:55:21 +00:00
WorkerManager-test.ts

Any UTs for vector-web layer components or functionality should go here. This used to contain the UTs for notifications before they got moved to react-sdk.