Start implementing streaming API

This commit is contained in:
Alex Gleason committed 2025-08-21 13:45:56 -05:00
1 parent 79f11383f1
commit 7ceb99ec79
6 files changed
+618 -170

No files matched your search

+13
View File
@@ -1,6 +1,19 @@
import '@testing-library/jest-dom';
import { vi } from 'vitest';
// Mock CSS imports
vi.mock('*.css', () => ({}));
vi.mock('*.scss', () => ({}));
vi.mock('*.sass', () => ({}));
// Mock KaTeX CSS specifically
vi.mock('katex/dist/katex.min.css', () => ({}));
// Mock Streamdown component that might be importing KaTeX
vi.mock('@soapbox.pub/streamdown', () => ({
Streamdown: ({ children }: { children: React.ReactNode }) => children
}));
// Mock window.matchMedia
Object.defineProperty(window, 'matchMedia', {
writable: true,