From fae37128f7854f5725f94348688df968722819c4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 3 Mar 2025 23:04:37 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript to v5.8.2 --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 87fc1f9..9996880 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9920,9 +9920,9 @@ typedarray-to-buffer@^3.1.5: is-typedarray "^1.0.0" typescript@^5.2.2: - version "5.7.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e" - integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw== + version "5.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4" + integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ== unbox-primitive@^1.0.2: version "1.0.2" From 0ce4b39a53f68d159394ed98585e189a995dedd0 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Thu, 6 Mar 2025 12:50:50 +0100 Subject: [PATCH 2/2] chore(test): fix type mismatch --- src/test/components/imprint.spec.tsx | 11 +++++++---- src/test/components/searchBar.spec.tsx | 11 +++++++---- src/test/components/settings.spec.tsx | 11 +++++++---- src/test/lib/useTheme.spec.tsx | 11 +++++++---- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/test/components/imprint.spec.tsx b/src/test/components/imprint.spec.tsx index b3e8452..003671c 100644 --- a/src/test/components/imprint.spec.tsx +++ b/src/test/components/imprint.spec.tsx @@ -36,10 +36,13 @@ describe("imprint.tsx", () => { // @ts-ignore delete window.location; - window.location = { - ...location, - reload: jest.fn(), - }; + Object.defineProperty(window, "location", { + configurable: true, + value: { + ...window.location, + reload: jest.fn(), + }, + }); }); it("Tests Imprint", () => { diff --git a/src/test/components/searchBar.spec.tsx b/src/test/components/searchBar.spec.tsx index 3c59f80..1eb2fb4 100644 --- a/src/test/components/searchBar.spec.tsx +++ b/src/test/components/searchBar.spec.tsx @@ -48,10 +48,13 @@ describe("searchBar.tsx", () => { // @ts-ignore delete window.location; - window.location = { - ...location, - reload: jest.fn(), - }; + Object.defineProperty(window, "location", { + configurable: true, + value: { + ...window.location, + reload: jest.fn(), + }, + }); }); it("Tests SearchBar rendering with properties", () => { diff --git a/src/test/components/settings.spec.tsx b/src/test/components/settings.spec.tsx index 56dd8dd..4847a18 100644 --- a/src/test/components/settings.spec.tsx +++ b/src/test/components/settings.spec.tsx @@ -78,10 +78,13 @@ describe("settings.tsx", () => { // @ts-ignore delete window.location; - window.location = { - ...location, - reload: jest.fn(), - }; + Object.defineProperty(window, "location", { + configurable: true, + value: { + ...window.location, + reload: jest.fn(), + }, + }); }); it("Tests forms", () => { diff --git a/src/test/lib/useTheme.spec.tsx b/src/test/lib/useTheme.spec.tsx index 250dea4..651fa58 100644 --- a/src/test/lib/useTheme.spec.tsx +++ b/src/test/lib/useTheme.spec.tsx @@ -21,10 +21,13 @@ const setup = () => { // @ts-ignore delete window.location; - window.location = { - ...location, - reload: jest.fn(), - }; + Object.defineProperty(window, "location", { + configurable: true, + value: { + ...window.location, + reload: jest.fn(), + }, + }); }; describe("theme.tsx", () => {