diff --git a/desktop/src/components/layout/ContentRouter.test.tsx b/desktop/src/components/layout/ContentRouter.test.tsx new file mode 100644 index 00000000..1c67893e --- /dev/null +++ b/desktop/src/components/layout/ContentRouter.test.tsx @@ -0,0 +1,76 @@ +import { fireEvent, render, screen } from '@testing-library/react' +import '@testing-library/jest-dom' +import { afterEach, describe, expect, it, vi } from 'vitest' + +vi.mock('../../pages/EmptySession', () => ({ + EmptySession: () =>
, +})) + +vi.mock('../../pages/ActiveSession', () => ({ + ActiveSession: () => , +})) + +vi.mock('../../pages/ScheduledTasks', () => ({ + ScheduledTasks: () => , +})) + +vi.mock('../../pages/Settings', () => ({ + Settings: () => , +})) + +vi.mock('../../pages/TerminalSettings', () => ({ + TerminalSettings: ({ active, onNewTerminal, testId }: { active: boolean; onNewTerminal: () => void; testId: string }) => ( +