feat: vitest 4

This commit is contained in:
Daniel Dietzler
2025-11-27 17:07:22 +01:00
parent 0581b49750
commit e17f12ca5c
9 changed files with 755 additions and 525 deletions
+6 -7
View File
@@ -4,6 +4,7 @@
"description": "",
"author": "",
"private": true,
"type": "commonjs",
"license": "GNU Affero General Public License version 3",
"scripts": {
"build": "nest build",
@@ -18,9 +19,9 @@
"check": "tsc --noEmit",
"check:code": "pnpm run format && pnpm run lint && pnpm run check",
"check:all": "pnpm run check:code && pnpm run test:cov",
"test": "vitest --config test/vitest.config.mjs",
"test": "vitest --config test/vitest.config.ts",
"test:cov": "vitest --config test/vitest.config.mjs --coverage",
"test:medium": "vitest --config test/vitest.config.medium.mjs",
"test:medium": "vitest --config test/vite.config.medium.ts",
"typeorm": "typeorm",
"migrations:debug": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations generate --debug",
"migrations:generate": "sql-tools -u ${DB_URL:-postgres://postgres:postgres@localhost:5432/immich} migrations generate",
@@ -121,7 +122,6 @@
"@nestjs/cli": "^11.0.2",
"@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.4",
"@swc/core": "^1.4.14",
"@types/archiver": "^7.0.0",
"@types/async-lock": "^1.4.2",
"@types/bcrypt": "^6.0.0",
@@ -146,7 +146,7 @@
"@types/supertest": "^6.0.0",
"@types/ua-parser-js": "^0.7.36",
"@types/validator": "^13.15.2",
"@vitest/coverage-v8": "^3.0.0",
"@vitest/coverage-v8": "^4.1.0",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.1.3",
@@ -163,9 +163,8 @@
"testcontainers": "^11.0.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.28.0",
"unplugin-swc": "^1.4.5",
"vite-tsconfig-paths": "^6.0.0",
"vitest": "^3.0.0"
"vite": "^8.0.0",
"vitest": "^4.1.0"
},
"volta": {
"node": "24.13.1"