From 3268f3c7f8346e1710106f67a9b3b2a66b98dd55 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 07:00:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20[code=20health=20improvement]=20?= =?UTF-8?q?Avoid=20using=20any=20type=20and=20eslint-disable=20comments=20?= =?UTF-8?q?in=20ThemeController.test.tsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com> --- src/components/__tests__/ThemeController.test.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/__tests__/ThemeController.test.tsx b/src/components/__tests__/ThemeController.test.tsx index 76628f1d..65448f4e 100644 --- a/src/components/__tests__/ThemeController.test.tsx +++ b/src/components/__tests__/ThemeController.test.tsx @@ -13,8 +13,7 @@ const { mockGetColorAsync, mockDestroy } = vi.hoisted(() => ({ // The hook uses fast-average-color, which we need to mock so it doesn't try to fetch real images in tests. vi.mock("fast-average-color", () => { return { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - FastAverageColor: vi.fn().mockImplementation(function(this: any) { + FastAverageColor: vi.fn().mockImplementation(function(this: { getColorAsync: unknown; destroy: unknown }) { this.getColorAsync = mockGetColorAsync; this.destroy = mockDestroy; return this; @@ -44,8 +43,7 @@ describe("ThemeController", () => { value: [100, 150, 200, 255] }); // Ensure adjustAccentColor mock implementation is restored - // eslint-disable-next-line @typescript-eslint/no-explicit-any - (colorLib.adjustAccentColor as any).mockImplementation((color: any) => ({ + vi.mocked(colorLib.adjustAccentColor).mockImplementation((color) => ({ accent: `mock-accent-${color}`, accentRgb: `mock-rgb-${color}`, accentHover: `mock-hover-${color}`,