"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vitest_1 = require("vitest"); const app_1 = require("../src/app"); (0, vitest_1.describe)('Server', () => { (0, vitest_1.it)('GET /api/health devuelve 200 y { status: "ok" }', async () => { const app = (0, app_1.buildApp)(); await app.ready(); const res = await app.inject({ method: 'GET', url: '/api/health' }); (0, vitest_1.expect)(res.statusCode).toBe(200); (0, vitest_1.expect)(res.json()).toEqual({ status: 'ok' }); await app.close(); }); }); /** * Metadatos: * Autor: GitHub Copilot * Última actualización: 2026-02-07 */