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
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Michael Telatynski
parent 6a1f0a7d22
commit b894f8d65f
217 changed files with 1364 additions and 1210 deletions
+6
View File
@@ -22,6 +22,12 @@ describe("theme", () => {
let spyQuerySelectorAll: jest.MockInstance<NodeListOf<Element>, [selectors: string]>;
let spyClassList: jest.SpyInstance<void, string[], any>;
beforeAll(() => {
const meta = document.createElement("meta");
meta.name = "theme-color";
document.head.appendChild(meta);
});
beforeEach(() => {
const styles = ["light", "dark", "light-custom", "dark-custom"].map(
(theme) =>