- Implemented AlertDialog component with overlay, content, header, footer, title, description, action, and cancel functionalities. - Created Badge component with variant support for different styles. - Developed Checkbox component with custom styling and indicator. - Added Dialog component with trigger, close, overlay, content, header, footer, title, and description. - Introduced Label component for form elements. - Built Select component with trigger, content, group, item, label, separator, and scroll buttons. - Created Sheet component with trigger, close, overlay, content, header, footer, title, and description. - Implemented Table component with header, body, footer, row, head, cell, and caption. - Added Textarea component with custom styling. - Established API service for game management with CRUD operations and metadata search functionalities. - Updated dependencies in package lock files.
20 lines
672 B
JavaScript
20 lines
672 B
JavaScript
"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
|
|
*/
|