/**
 * Simple health check test
 */

import fetch from 'node-fetch';

const SERVER_URL = 'http://localhost:3001';

async function testHealth() {
  try {
    console.log('🔍 Testing health endpoint...');
    const response = await fetch(`${SERVER_URL}/health`);
    
    console.log('Status:', response.status);
    console.log('Headers:', Object.fromEntries(response.headers.entries()));
    
    const data = await response.json();
    console.log('Response:', data);
    
  } catch (error) {
    console.error('❌ Error:', error);
  }
}

testHealth();
