fix: mock next/font in tests and remove broken shared export

This commit is contained in:
Ilia Mashkov
2026-04-23 21:01:46 +03:00
parent 68d5de3716
commit 5dbf5e34c2
6 changed files with 99 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
import { vi } from 'vitest';
const mockFont = () => ({
variable: '--font-mock',
className: 'mock-font',
style: { fontFamily: 'mock-font' },
});
vi.mock('next/font/google', () => ({
Fraunces: mockFont,
Public_Sans: mockFont,
}));