prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey

fix ui tests

Tyler a04e5931 83ff699a

+14
+14
packages/site/tests/setup.ts
··· 22 22 (global as any).MonacoEnvironment = { 23 23 getWorker: () => ({}) as any, 24 24 }; 25 + 26 + Object.defineProperty(window, "matchMedia", { 27 + writable: true, 28 + value: vi.fn().mockImplementation((query) => ({ 29 + matches: false, 30 + media: query, 31 + onchange: null, 32 + addListener: vi.fn(), 33 + removeListener: vi.fn(), 34 + addEventListener: vi.fn(), 35 + removeEventListener: vi.fn(), 36 + dispatchEvent: vi.fn(), 37 + })), 38 + });