diff --git a/src/components/__tests__/ThemeController.test.tsx b/src/components/__tests__/ThemeController.test.tsx index 76628f1..65448f4 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}`,