chore(09-01): install node-forge + Vitest runner for @tessera/api
- Add node-forge@^1.4.0 runtime dependency (certificate crypto) - Add @types/node-forge@^1.3.14 and vitest@^3 dev dependencies - Create apps/api/vitest.config.ts (environment: node, passWithNoTests) - Add test + test:watch scripts to apps/api/package.json
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
"start": "node dist/main.js",
|
||||
"start:dev": "nest start --watch",
|
||||
"type-check": "tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"postinstall": "test -f prisma/schema.prisma && prisma generate || true"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -21,7 +23,6 @@
|
||||
"@nestjs/platform-express": "^11.0.0",
|
||||
"@nestjs/schedule": "^6.1.3",
|
||||
"@prisma/client": "^6.0.0",
|
||||
"prisma": "^6.0.0",
|
||||
"@tessera/shared": "workspace:*",
|
||||
"argon2": "^0.44.0",
|
||||
"class-transformer": "^0.5.1",
|
||||
@@ -32,12 +33,14 @@
|
||||
"httpntlm": "^1.8.13",
|
||||
"imapflow": "^1.4.3",
|
||||
"ldapts": "^8.1.8",
|
||||
"node-forge": "^1.4.0",
|
||||
"node-ical": "0.26.1",
|
||||
"nodemailer": "^9.0.1",
|
||||
"passport": "^0.7.0",
|
||||
"passport-jwt": "^4.0.1",
|
||||
"passport-local": "^1.0.0",
|
||||
"pdf-parse": "^2.4.5",
|
||||
"prisma": "^6.0.0",
|
||||
"reflect-metadata": "^0.2.0",
|
||||
"rxjs": "^7.0.0",
|
||||
"tsdav": "2.2.2",
|
||||
@@ -48,9 +51,11 @@
|
||||
"@types/cookie-parser": "^1.4.10",
|
||||
"@types/express": "^5.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/node-forge": "^1.3.14",
|
||||
"@types/nodemailer": "^8.0.1",
|
||||
"@types/passport-jwt": "^4.0.1",
|
||||
"@types/passport-local": "^1.0.38",
|
||||
"typescript": "^5.5.0"
|
||||
"typescript": "^5.5.0",
|
||||
"vitest": "^3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: 'node',
|
||||
globals: true,
|
||||
include: ['src/**/*.spec.ts'],
|
||||
passWithNoTests: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user