chore: update Prisma and dependencies, add initial migration and tests

- Updated Prisma and @prisma/client to version 6.19.2 in package.json and yarn.lock.
- Added package extensions for @prisma/client in .yarnrc.yml.
- Updated backend README.md for clearer setup instructions.
- Created initial migration for Game, Platform, and related tables in Prisma.
- Added migration lock file for version control.
- Implemented tests for Game model using Vitest, including creation and unique slug constraint checks.
This commit is contained in:
2026-02-08 12:36:36 +01:00
parent fb4b279db0
commit f4bee94a16
11 changed files with 886 additions and 112 deletions

View File

@@ -3,6 +3,8 @@
**Resumen breve**
Quasar es una aplicación web para gestionar una biblioteca personal de videojuegos. Este repositorio está en estado inicial: contiene `package.json` y `README.md` pero no hay código fuente ni tests aún. Prioridad: configurar pruebas (Playwright), scripts útiles y prácticas de seguridad para manejar claves/API.
**Importante:** Este proyecto usa Yarn (no npm). Usa `yarn` para instalar dependencias y ejecutar scripts.
## Estilo de código ✅
- Mantener **CommonJS** (`type: commonjs` en `package.json`).
@@ -13,7 +15,7 @@ Quasar es una aplicación web para gestionar una biblioteca personal de videojue
- Instalación: `yarn install` (usar Yarn/local; `packageManager` se indica en `package.json`).
- `package.json` actual tiene un `test` placeholder. Reemplazar por un runner real tras inicializar Playwright. (recomendado)
- Inicializar Playwright: `npx playwright test --init`. (recomendado)
- Instalar dependencias de navegadores: `npm run test:install` (sugerido script abajo).
- Instalar dependencias de navegadores: `yarn test:install` (sugerido script abajo).
- En CI: `yarn install && yarn test:install && yarn test`.
## Convenciones 🔁