Skip to content

Commit 7d3ca14

Browse files
chore: upgrade to Prisma v6.13.0
1 parent 75fbd31 commit 7d3ca14

6 files changed

Lines changed: 333 additions & 62 deletions

File tree

app/main/test/integration/users/users.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe("Users API", () => {
6666
}, 30000)
6767

6868
afterEach(async () => {
69-
cleanDatabase(prisma)
69+
await cleanDatabase(prisma)
7070
await prisma.$disconnect()
7171
await app.close()
7272
})

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const mainSettings = {
1515
"@external/(.*)": "<rootDir>/app/external/src/$1",
1616
"@external": "<rootDir>/app/external/src",
1717
"@utils/(.*)": "<rootDir>/app/utils/src/$1",
18-
"@utils": "<rootDir>/app/utils/src"
18+
"@utils": "<rootDir>/app/utils/src",
19+
"^@prisma/client$": "<rootDir>/generated/prisma/client.ts"
1920
}
2021
}
2122

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@nestjs/jwt": "11.0.0",
3636
"@nestjs/passport": "11.0.5",
3737
"@nestjs/platform-express": "11.1.5",
38-
"@prisma/client": "6.9.0",
38+
"@prisma/client": "6.13.0",
3939
"class-transformer": "0.5.1",
4040
"class-validator": "0.14.2",
4141
"express": "4.21.2",
@@ -71,7 +71,7 @@
7171
"jest": "29.7.0",
7272
"prettier": "3.6.2",
7373
"pretty-format": "30.0.5",
74-
"prisma": "6.9.0",
74+
"prisma": "6.13.0",
7575
"prisma-case-format": "2.2.1",
7676
"rxjs": "7.8.2",
7777
"supertest": "7.1.4",

prisma/schema.prisma

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
generator client {
2-
provider = "prisma-client-js"
2+
provider = "prisma-client"
3+
output = "../generated/prisma"
34
}
45

56
datasource db {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"@controllers": ["app/controllers/src"],
2121
"@controllers/*": ["app/controllers/src/*"],
2222
"@utils": ["app/utils/src"],
23-
"@utils/*": ["app/utils/src/*"]
23+
"@utils/*": ["app/utils/src/*"],
24+
"@prisma/client": ["generated/prisma/client.ts"]
2425
}
2526
},
2627
"exclude": ["node_modules", "build"]

0 commit comments

Comments
 (0)