repo_description: Scheduling infrastructure for absolutely everyone.
repo_topics: next-auth nextjs open-source postgresql prisma t3-stack tailwindcss trpc turborepo typescript zod
code: import { vi } from "vitest";
  
  // Mock window.matchMedia for jsdom environment
  // This needs to be set up before any React components are rendered
  const matchMediaMock = vi.fn().mockImplementation((query: string) => ({
    matches: false,
    media: query,
    onchange: null,
    addListener: vi.fn(),
    removeListener: vi.fn(),
    addEventListener: vi.fn(),
    removeEventListener: vi.fn(),
    dispatchEvent: vi.fn(),
  }));
  
  Object.defineProperty(window, "matchMedia", {
    writable: true,
    configurable: true,
    value: matchMediaMock,
  });
  