From 2980381a7d36b44aa2224eef86483cc1b328a347 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 06:55:38 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20[code=20health=20improvement]=20?= =?UTF-8?q?Remove=20any=20type=20and=20eslint-disable=20comment=20in=20use?= =?UTF-8?q?ThemeColor.test.ts?= 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/hooks/__tests__/useThemeColor.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/hooks/__tests__/useThemeColor.test.ts b/src/hooks/__tests__/useThemeColor.test.ts index 259d8bd0..28bc248a 100644 --- a/src/hooks/__tests__/useThemeColor.test.ts +++ b/src/hooks/__tests__/useThemeColor.test.ts @@ -6,12 +6,15 @@ import * as colorLib from "@/lib/color"; import { FastAverageColor } from "fast-average-color"; // Mock fast-average-color +interface MockFastAverageColor { + getColorAsync: ReturnType; + destroy: ReturnType; +} vi.mock("fast-average-color", () => { const mockGetColorAsync = vi.fn(); const mockDestroy = vi.fn(); return { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - FastAverageColor: vi.fn().mockImplementation(function(this: any) { + FastAverageColor: vi.fn().mockImplementation(function(this: MockFastAverageColor) { this.getColorAsync = mockGetColorAsync; this.destroy = mockDestroy; return this;