Skip to content

The agent that grows with you

test(web): type the shared preset lookup as ThemePresetPalette so tsc -b (the Docker build) accepts darkColors

teknium1d8668e25ef27
diff --git a/web/src/themes/presets.test.ts b/web/src/themes/presets.test.ts
index 3a3362bd441..f941819841c 100644
--- a/web/src/themes/presets.test.ts
+++ b/web/src/themes/presets.test.ts
@@ -1,4 +1,4 @@
-import { contrastRatio, THEME_PRESET_PALETTES } from "@hermes/shared";
+import { contrastRatio, THEME_PRESET_PALETTES, type ThemePresetPalette } from "@hermes/shared";
import { describe, expect, it } from "vitest";
import { BUILTIN_THEMES, webPresetFromShared } from "./presets";
@@ -18,7 +18,7 @@ describe("dashboard presets derive from the shared palette table", () => {
});
it.each(shared)("%s: canvas equals the shared background and the accent reads on it", (name) => {
- const preset = THEME_PRESET_PALETTES[name];
+ const preset: ThemePresetPalette = THEME_PRESET_PALETTES[name];
const derived = webPresetFromShared(preset);
const palette = BUILTIN_THEMES[name].palette;