feat: add tests for normalizeName and RecipesService methods, including unit conversion and alias normalization

This commit is contained in:
Nils-Johan Gynther
2026-04-16 19:22:14 +02:00
parent 1b9df4d20d
commit 9292e30abc
6 changed files with 305 additions and 9 deletions
+14 -3
View File
@@ -8,7 +8,9 @@
"start:dev": "nest start --watch",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:deploy": "prisma migrate deploy"
"prisma:deploy": "prisma migrate deploy",
"test": "jest",
"test:watch": "jest --watch"
},
"dependencies": {
"@nestjs/common": "^10.3.0",
@@ -35,6 +37,15 @@
"@types/pdf-parse": "^1.1.5",
"@types/uuid": "^10.0.0",
"prisma": "6.12.0",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"jest": "^29.7.0",
"ts-jest": "^29.2.6",
"@types/jest": "^29.5.14"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"moduleFileExtensions": ["js", "json", "ts"]
}
}