Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Fix tests
BeatLink9d2b61080676
diff --git a/apps/client/src/widgets/react/ColorPicker.spec.tsx b/apps/client/src/widgets/react/ColorPicker.spec.tsxindex 951fa31c0a..2405fc5e05 100644--- a/apps/client/src/widgets/react/ColorPicker.spec.tsx+++ b/apps/client/src/widgets/react/ColorPicker.spec.tsx@@ -1,3 +1,4 @@+import type { ComponentChildren } from "preact";import { describe, expect, it, vi } from "vitest";import { renderInto } from "../../test/render";@@ -6,7 +7,7 @@ import { renderInto } from "../../test/render";// (Bootstrap-driven state that happy-dom can't flip). Stub it to render the trigger + menu content// inline so we can exercise ColorPicker's own logic (swatches, native input, clear) directly.vi.mock("./Dropdown", () => ({- default: ({ text, children }: { text: unknown; children: unknown }) => (+ default: ({ text, children }: { text: ComponentChildren; children: ComponentChildren }) => (<div className="dropdown-stub"><div className="dropdown-stub-trigger">{text}</div><div className="dropdown-stub-menu">{children}</div>