import { describe, it, expect, vi } from 'vitest';
import LoginPage from '@/app/login/page';
import { signIn } from 'next-auth/react';

vi.mock('next-auth/react', () => ({
  signIn: vi.fn(),
}));

describe('LoginPage', () => {
  it('exports a valid component', () => {
    expect(LoginPage).toBeDefined();
    expect(typeof LoginPage).toBe('function');
  });

  it('uses signIn from next-auth', () => {
    expect(signIn).toBeDefined();
  });
});
