|
17 | 17 | "test:watch": "jest --watch",
|
18 | 18 | "test:cov": "jest --coverage",
|
19 | 19 | "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
20 |
| - "test:e2e": "jest --config ./test/jest-e2e.json" |
| 20 | + "test:e2e": "jest --config ./test/jest-e2e.json", |
| 21 | + "db:migrate": "mikro-orm migration:create", |
| 22 | + "db:up": "mikro-orm migration:up" |
21 | 23 | },
|
22 | 24 | "dependencies": {
|
| 25 | + "@mikro-orm/core": "^6.4.3", |
| 26 | + "@mikro-orm/migrations": "^6.4.3", |
| 27 | + "@mikro-orm/nestjs": "^6.0.2", |
| 28 | + "@mikro-orm/postgresql": "^6.4.3", |
23 | 29 | "@nestjs/common": "^9.0.0",
|
24 | 30 | "@nestjs/config": "^3.3.0",
|
25 | 31 | "@nestjs/core": "^9.0.0",
|
|
32 | 38 | "rxjs": "^7.2.0"
|
33 | 39 | },
|
34 | 40 | "devDependencies": {
|
| 41 | + "@mikro-orm/cli": "^6.4.3", |
35 | 42 | "@nestjs/cli": "^9.0.0",
|
36 | 43 | "@nestjs/schematics": "^9.0.0",
|
37 | 44 | "@nestjs/testing": "^9.0.0",
|
|
54 | 61 | "tsconfig-paths": "4.2.0",
|
55 | 62 | "typescript": "^5.0.0"
|
56 | 63 | },
|
| 64 | + "mikro-orm": { |
| 65 | + "useTsNode": true, |
| 66 | + "configPaths": [ |
| 67 | + "./src/database/mikro-orm.config.ts" |
| 68 | + ] |
| 69 | + }, |
57 | 70 | "jest": {
|
58 | 71 | "moduleFileExtensions": [
|
59 | 72 | "js",
|
|
0 commit comments