forked from mtusi2026/mtusi2026lab2
feat: add database and orm
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { execSync } from 'child_process';
|
||||
|
||||
export default function globalSetup(): void {
|
||||
execSync('npx prisma migrate deploy', { stdio: 'inherit' });
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
"rootDir": ".",
|
||||
"testEnvironment": "node",
|
||||
"testRegex": ".e2e-spec.ts$",
|
||||
"globalSetup": "<rootDir>/global-setup.ts",
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user