mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Start implementing streaming API
This commit is contained in:
6 files changed
+618
-170
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user