perf(test): slim entry and chat tests

This commit is contained in:
Peter Steinberger
2026-04-20 19:55:24 +01:00
parent 43fa394b83
commit 8e519aa826
4 changed files with 132 additions and 167 deletions

View File

@@ -16,6 +16,23 @@ vi.mock("../markdown.ts", () => ({
toSanitizedMarkdownHtml: (value: string) => value,
}));
vi.mock("../chat/export.ts", () => ({
exportChatMarkdown: vi.fn(),
}));
vi.mock("../chat/speech.ts", () => ({
isSttActive: () => false,
isSttSupported: () => false,
isTtsSpeaking: () => false,
isTtsSupported: () => false,
speakText: () => false,
startStt: () => false,
stopStt: () => undefined,
stopTts: () => undefined,
}));
vi.mock("../components/resizable-divider.ts", () => ({}));
vi.mock("./markdown-sidebar.ts", async () => {
const { html } = await import("lit");
return {