import { describe, it, expect } from 'vitest';
import config from '../../src/config/configuration.js';

describe('configuration', () => {
  it('exports default config values', () => {
    expect(config.port).toBe(3001);
    expect(config.mongodb.uri).toContain('mongodb://');
    expect(config.keycloak.url).toBe('http://localhost:8080');
    expect(config.keycloak.issuerUrl).toBe('http://localhost:8080');
    expect(config.keycloak.realm).toBe('meshitrack');
    expect(config.keycloak.clientId).toBe('meshitrack-api');
    expect(config.cors.origin).toBe('http://localhost:3000');
  });
});
