Update jest to v30 (major) (#30117)

* Update jest to v30

* Update jest to v30

* Update snapshots

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

* Apply jsdom patch

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

* Fix tests

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

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2025-11-13 10:50:33 +00:00
committed by GitHub
parent 6a1f0a7d22
commit b894f8d65f
217 changed files with 1364 additions and 1210 deletions
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`EventTileThreadToolbar renders 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`RoomHeader dm does not show the face pile for DMs 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<VideoRoomChatButton /> renders button with an unread marker when room is unread 1`] = `
<button
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<EmptyRoomList /> should display empty state for filter favourite 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomList /> should render a room list 1`] = `
<DocumentFragment>
@@ -7,7 +7,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-testid="room-list"
data-virtuoso-scroller="true"
role="listbox"
style="height: 100%; outline: none; overflow-y: auto; position: relative;"
style="height: 100%; outline: none; overflow-y: auto; position: relative; -webkit-overflow-scrolling: touch;"
tabindex="0"
>
<div
@@ -22,6 +22,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="0"
data-item-index="0"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -76,6 +77,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="1"
data-item-index="1"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -130,6 +132,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="2"
data-item-index="2"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -184,6 +187,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="3"
data-item-index="3"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -238,6 +242,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="4"
data-item-index="4"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -292,6 +297,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="5"
data-item-index="5"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -346,6 +352,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="6"
data-item-index="6"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -400,6 +407,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="7"
data-item-index="7"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -454,6 +462,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="8"
data-item-index="8"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -508,6 +517,7 @@ exports[`<RoomList /> should render a room list 1`] = `
data-index="9"
data-item-index="9"
data-known-size="48"
style="overflow-anchor: none;"
>
<button
aria-haspopup="menu"
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListHeaderView /> compose menu should display the compose menu 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListItemMenuView /> should render the more options menu 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListItemView /> should be selected if isSelected=true 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListOptionsMenu /> should match snapshot 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListPrimaryFilters /> should renders all filters correctly 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<RoomListSearch /> should display search and explore buttons 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`ExtraTile renders 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`NewRoomIntro topic should render a link in the topic 1`] = `
<p
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<NotificationDecoration /> should render the activity decoration 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<PinnedEventTile /> should render pinned event 1`] = `
<div>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<PinnedMessageBanner /> should display display a poll event 1`] = `
<DocumentFragment>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
<div
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<ThirdPartyMemberInfo /> should render invite 1`] = `
<div>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`MemberTileView RoomMemberTileView should display an verified E2EIcon when the e2E status = Verified 1`] = `
<div>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`<PresenceIconView/> renders correctly for presence=busy 1`] = `
<div>
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`FormattingButtons renders in german 1`] = `
<DocumentFragment>