Skip to content

Commit db20324

Browse files
authored
test: Removed unnecessary prisma.$use in tests to unpin (#3303)
1 parent 49fb0ce commit db20324

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

test/versioned/prisma/app.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55

66
'use strict'
77
async function upsertUsers(prisma) {
8-
prisma.$use(async function prismaMiddleware(params, next) {
9-
if (params.action === 'update') {
10-
params.args.data.updatedBy = 'Jessica Lopatta <jlopatta@newrelic.com>'
11-
}
12-
13-
return next(params)
14-
})
15-
168
const users = await prisma.user.findMany()
179

1810
const upserts = []

test/versioned/prisma/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"node": ">=20"
1818
},
1919
"dependencies": {
20-
"@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1 <6.14.0"
20+
"@prisma/client": ">=5.0.0 <5.9.0 || >=5.9.1"
2121
},
2222
"files": [
2323
"prisma.test.js"

0 commit comments

Comments
 (0)