"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const dotenv_1 = __importDefault(require("dotenv")); const child_process_1 = require("child_process"); // Cargar variables de entorno desde .env dotenv_1.default.config(); // Ejecutar migraciones de Prisma antes de los tests try { (0, child_process_1.execSync)('npx prisma migrate deploy', { cwd: process.cwd(), stdio: 'inherit', }); } catch (error) { console.error('Failed to run Prisma migrations:', error); } /** * Metadatos: * Autor: GitHub Copilot * Última actualización: 2026-02-12 */