import fetch from 'node-fetch' async function testAccountAPI() { console.log('🧪 Probando API de cuenta...') try { // Probar la API de imagen de perfil console.log('📸 Probando /api/account/profile-image...') const response = await fetch('http://localhost:3000/api/account/profile-image') console.log('Status:', response.status) console.log('Headers:', response.headers) if (response.ok) { const data = await response.json() console.log('✅ Respuesta exitosa:', data) } else { const error = await response.text() console.log('❌ Error:', error) } } catch (error) { console.error('❌ Error de conexión:', error.message) } } testAccountAPI()