Add interface design references and principles; implement sport service tests

- Introduced critique, example, principles, and validation documents for interface design.
- Enhanced backend service with coverage threshold and fixed variable declaration in sport service.
- Added comprehensive tests for create, update, and list sports functionalities.
This commit is contained in:
Jose Selesan
2026-04-24 10:40:25 -03:00
parent 21d0c27f4d
commit c9ecdd2c77
10 changed files with 1135 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ export async function createSport(input: CreateSportInput) {
return err(Errors.conflict('Ya existe un deporte con ese nombre.'));
}
var created = db.sport.create({
const created = await db.sport.create({
data: {
id: uuidv7(),
name: input.name.trim(),