Spaces:
Runtime error
Runtime error
| import { describe, it, expect } from 'vitest'; | |
| import { auth } from '../auth'; | |
| import { authClient } from '../auth-client'; | |
| // Mock better-auth if needed, but for now checking exports | |
| describe('Auth Configuration', () => { | |
| it('should export auth instance', () => { | |
| expect(auth).toBeDefined(); | |
| // Check for api property which typical better-auth instance has | |
| expect(auth.api).toBeDefined(); | |
| }); | |
| it('should export auth client', () => { | |
| expect(authClient).toBeDefined(); | |
| // Check for signIn/signUp methods | |
| expect(authClient.signIn).toBeDefined(); | |
| expect(authClient.signUp).toBeDefined(); | |
| }); | |
| }); | |