diff --git a/src/App.test.tsx b/src/App.test.tsx index 00a2593..27e040d 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,7 +1,13 @@ import { render, screen } from '@testing-library/react' -import { describe, it, expect } from 'vitest' +import { describe, it, expect, vi } from 'vitest' import App from './App.tsx' +vi.mock('./lib/auth-client.ts', () => ({ + authClient: { + useSession: () => ({ data: null, isPending: false }), + }, +})) + describe('App', () => { it('renders the dashboard on the root route', () => { render()