build: add Prisma 7, PostgreSQL driver and @nestjs/config

Generate the Prisma client on postinstall. Jest now transpiles the ESM-only @nestjs/config and maps the .js imports of the generated Prisma client, in both the unit and e2e configurations.
This commit is contained in:
MastersGame
2026-11-05 23:00:45 +01:00
parent 24b699cfc4
commit a0ddef240c
3 changed files with 4023 additions and 1776 deletions

View File

@@ -4,6 +4,20 @@
"testEnvironment": "node",
"testRegex": ".e2e-spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
"^.+.ts$": "ts-jest",
"^.+.js$": [
"ts-jest",
{
"tsconfig": {
"allowJs": true,
"module": "commonjs",
"moduleResolution": "node"
}
}
]
},
"transformIgnorePatterns": ["/node_modules/(?!@nestjs/config/)"],
"moduleNameMapper": {
"^(.{1,2}/.*).js$": "$1"
}
}