-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
tests.ts
45 lines (42 loc) · 1.14 KB
/
tests.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import testMatrix from './_matrix'
// @ts-ignore
import type { PrismaClient } from './node_modules/@prisma/client'
declare let prisma: PrismaClient
testMatrix.setupTestSuite(
() => {
// TODO: this currently fails with "The column `j1.id` does not exist in the current database.".
// Close https://github.com/prisma/prisma/issues/21352 once fixed.
test('[1] should not fail', async () => {
await prisma.relation1.findMany({
select: {
id: true,
},
where: {
user: {
email: 'info@example.com',
},
},
})
})
// TODO: this currently fails with "The column `j1.field` does not exist in the current database.".
// Close https://github.com/prisma/prisma/issues/21352 once fixed.
test('[2] should not fail', async () => {
await prisma.relation2.findMany({
select: {
field: true,
},
where: {
user: {
id: 'info@example.com',
},
},
})
})
},
{
optOut: {
from: ['mongodb'],
reason: 'Only SQL databases were affected by regression #21352',
},
},
)