Spaces:
Runtime error
Runtime error
File size: 667 Bytes
ceb943f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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();
});
});
|