diff --git a/@packages/@providers/auth-provider/src/AuthProviderWithDevBridge.test.tsx b/@packages/@providers/auth-provider/src/AuthProviderWithDevBridge.test.tsx index 8436147bf..a45bc131c 100644 --- a/@packages/@providers/auth-provider/src/AuthProviderWithDevBridge.test.tsx +++ b/@packages/@providers/auth-provider/src/AuthProviderWithDevBridge.test.tsx @@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'; import { render, screen } from '@testing-library/react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { AuthProviderWithDevBridge } from './AuthProviderWithDevBridge'; -import type { DevUserMapper } from './types'; +import type { DevUserMapper } from './AuthProviderWithDevBridge'; import type { DevUserState } from '@lilith/ui-dev-tools'; import { UserRole } from '@lilith/types'; diff --git a/@packages/@providers/auth-provider/src/devAuthIntegration.test.tsx b/@packages/@providers/auth-provider/src/devAuthIntegration.test.tsx index c9b808ebd..01a679404 100644 --- a/@packages/@providers/auth-provider/src/devAuthIntegration.test.tsx +++ b/@packages/@providers/auth-provider/src/devAuthIntegration.test.tsx @@ -3,7 +3,8 @@ import { render, screen, waitFor } from '@testing-library/react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { AuthProviderWithDevBridge } from './AuthProviderWithDevBridge'; import { useAuth } from './useAuth'; -import type { DevUserMapper } from './types'; +import type { DevUserMapper } from './AuthProviderWithDevBridge'; +import type { DevUserState } from '@lilith/ui-dev-tools'; import { UserRole, UserType } from '@lilith/types'; // Mock @lilith/ui-dev-tools @@ -55,7 +56,7 @@ function TestComponent() { } describe('Dev Auth Integration', () => { - const mapDevUser: DevUserMapper = (devUser) => ({ + const mapDevUser: DevUserMapper = (devUser: DevUserState) => ({ id: devUser.userId || 'dev-id', email: `${devUser.primaryType}@test.local`, username: devUser.displayName || 'Dev User', diff --git a/@packages/@providers/auth-provider/tsconfig.json b/@packages/@providers/auth-provider/tsconfig.json index a9f1b7c60..552c40fc3 100644 --- a/@packages/@providers/auth-provider/tsconfig.json +++ b/@packages/@providers/auth-provider/tsconfig.json @@ -10,6 +10,6 @@ "compilerOptions": { "outDir": "./dist", "noEmit": true, - "types": ["vite/client"] + "types": ["vite/client", "@testing-library/jest-dom"] } } diff --git a/@packages/@providers/auth-provider/vitest.config.ts b/@packages/@providers/auth-provider/vitest.config.ts index 8638e3bfe..4adf85ec4 100644 --- a/@packages/@providers/auth-provider/vitest.config.ts +++ b/@packages/@providers/auth-provider/vitest.config.ts @@ -1,3 +1,3 @@ -import { nodePreset } from '@lilith/test-utils/vitest-presets' +import { reactPreset } from '@lilith/test-utils/vitest-presets' -export default nodePreset() +export default reactPreset()