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:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Michael Telatynski
parent
6a1f0a7d22
commit
b894f8d65f
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user