Skip to content

Commit

Permalink
test: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Sep 6, 2022
1 parent 6e0c04a commit d64ca7e
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ exports[`field-reference.json (provider=cockroachdb) wrong field type 1`] = `
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/json/tests.ts:0:0
XX })
XX
XX test('wrong field type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong field type', async () => {
XX const products = prisma.product.findMany({
where: {
properties1: {
Expand All @@ -27,9 +27,9 @@ exports[`field-reference.json (provider=mongodb) wrong field type 1`] = `
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/json/tests.ts:0:0
XX })
XX
XX test('wrong field type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong field type', async () => {
XX const products = prisma.product.findMany({
where: {
properties1: {
Expand All @@ -49,9 +49,9 @@ exports[`field-reference.json (provider=mysql) wrong field type 1`] = `
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/json/tests.ts:0:0
XX })
XX
XX test('wrong field type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong field type', async () => {
XX const products = prisma.product.findMany({
where: {
properties1: {
Expand All @@ -71,9 +71,9 @@ exports[`field-reference.json (provider=postgresql) wrong field type 1`] = `
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/json/tests.ts:0:0
XX })
XX
XX test('wrong field type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong field type', async () => {
XX const products = prisma.product.findMany({
where: {
properties1: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ exports[`field-reference.numeric (provider=cockroachdb, fieldType=BigInt) wrong
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -27,9 +27,9 @@ exports[`field-reference.numeric (provider=cockroachdb, fieldType=Float) wrong c
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -49,9 +49,9 @@ exports[`field-reference.numeric (provider=cockroachdb, fieldType=Int) wrong col
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -71,9 +71,9 @@ exports[`field-reference.numeric (provider=mongodb, fieldType=BigInt) wrong colu
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -93,9 +93,9 @@ exports[`field-reference.numeric (provider=mongodb, fieldType=Float) wrong colum
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -115,9 +115,9 @@ exports[`field-reference.numeric (provider=mongodb, fieldType=Int) wrong column
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -137,9 +137,9 @@ exports[`field-reference.numeric (provider=mysql, fieldType=BigInt) wrong column
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -159,9 +159,9 @@ exports[`field-reference.numeric (provider=mysql, fieldType=Float) wrong column
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -181,9 +181,9 @@ exports[`field-reference.numeric (provider=mysql, fieldType=Int) wrong column nu
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -203,9 +203,9 @@ exports[`field-reference.numeric (provider=postgresql, fieldType=BigInt) wrong c
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -225,9 +225,9 @@ exports[`field-reference.numeric (provider=postgresql, fieldType=Float) wrong co
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -247,9 +247,9 @@ exports[`field-reference.numeric (provider=postgresql, fieldType=Int) wrong colu
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -269,9 +269,9 @@ exports[`field-reference.numeric (provider=sqlite, fieldType=BigInt) wrong colum
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -291,9 +291,9 @@ exports[`field-reference.numeric (provider=sqlite, fieldType=Float) wrong column
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -313,9 +313,9 @@ exports[`field-reference.numeric (provider=sqlite, fieldType=Int) wrong column n
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -335,9 +335,9 @@ exports[`field-reference.numeric (provider=sqlserver, fieldType=BigInt) wrong co
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -357,9 +357,9 @@ exports[`field-reference.numeric (provider=sqlserver, fieldType=Float) wrong col
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand All @@ -379,9 +379,9 @@ exports[`field-reference.numeric (provider=sqlserver, fieldType=Int) wrong colum
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/numeric/tests.ts:0:0
XX })
XX
XX test('wrong column numeric type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong column numeric type', async () => {
XX const products = prisma.product.findMany({
where: {
quantity: {
Expand Down
12 changes: 6 additions & 6 deletions packages/client/tests/functional/field-reference/string/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ testMatrix.setupTestSuite((_suiteConfig, _suiteMeta, { runtime }) => {
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/string/tests.ts:0:0
XX })
XX
XX test('wrong field type', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong field type', async () => {
→ XX const products = prisma.product.findMany({
where: {
string: {
Expand Down Expand Up @@ -98,9 +98,9 @@ testMatrix.setupTestSuite((_suiteConfig, _suiteMeta, { runtime }) => {
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/string/tests.ts:0:0
XX })
XX
XX test('wrong model', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong model', async () => {
→ XX const products = prisma.product.findMany({
where: {
string: {
Expand Down Expand Up @@ -132,9 +132,9 @@ testMatrix.setupTestSuite((_suiteConfig, _suiteMeta, { runtime }) => {
Invalid \`prisma.product.findMany()\` invocation in
/client/tests/functional/field-reference/string/tests.ts:0:0
XX })
XX
XX test('wrong identical model', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(runtime !== 'edge')('wrong identical model', async () => {
→ XX const products = prisma.product.findMany({
where: {
string: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ exports[`fulltext-search (provider=mysql) bad query 1`] = `
Invalid \`.findMany()\` invocation in
/client/tests/functional/fulltext-search/tests.ts:0:0
XX
XX testIf(process.platform !== 'win32')('bad query', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(process.platform !== 'win32' && clientMeta.runtime !== 'edge')('bad query', async () => {
XX const result = prisma.user
XX .findMany(
Error occurred during query execution:
Expand All @@ -18,8 +18,8 @@ exports[`fulltext-search (provider=postgresql) bad query 1`] = `
Invalid \`.findMany()\` invocation in
/client/tests/functional/fulltext-search/tests.ts:0:0
XX
XX testIf(process.platform !== 'win32')('bad query', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(process.platform !== 'win32' && clientMeta.runtime !== 'edge')('bad query', async () => {
XX const result = prisma.user
XX .findMany(
Error occurred during query execution:
Expand Down
32 changes: 16 additions & 16 deletions packages/client/tests/functional/json-null-types/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,24 @@ testMatrix.setupTestSuite(
}),
).rejects.toMatchPrismaErrorInlineSnapshot(`
Invalid \`prisma.requiredJsonField.create()\` invocation in
/client/tests/functional/json-null-types/tests.ts:0:0
Invalid \`prisma.requiredJsonField.create()\` invocation in
/client/tests/functional/json-null-types/tests.ts:0:0
XX
XX test('DbNull', async () => {
XX await expect(
→ XX prisma.requiredJsonField.create({
data: {
json: Prisma.DbNull
~~~~~~~~~~~~~
}
})
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(clientMeta.runtime !== 'edge')('DbNull', async () => {
XX await expect(
→ XX prisma.requiredJsonField.create({
data: {
json: Prisma.DbNull
~~~~~~~~~~~~~
}
})
Argument json: Provided value Prisma.DbNull of type DbNull on prisma.createOneRequiredJsonField is not a JsonNullValueInput.
→ Possible values: JsonNullValueInput.JsonNull
Argument json: Provided value Prisma.DbNull of type DbNull on prisma.createOneRequiredJsonField is not a JsonNullValueInput.
→ Possible values: JsonNullValueInput.JsonNull
`)
`)
})
})

Expand All @@ -90,8 +90,8 @@ testMatrix.setupTestSuite(
Invalid \`prisma.requiredJsonField.create()\` invocation in
/client/tests/functional/json-null-types/tests.ts:0:0
XX
XX test('custom instances are not allowed', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(clientMeta.runtime !== 'edge')('custom instances are not allowed', async () => {
XX await expect(
→ XX prisma.requiredJsonField.create({
data: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ testMatrix.setupTestSuite((_suiteConfig, _suiteMeta, clientMeta) => {
Invalid \`prisma.user.findFirstOrThrow()\` invocation in
/client/tests/functional/methods/findFirstOrThrow/tests.ts:0:0
XX })
XX
XX test('does not accept rejectOnNotFound option', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(clientMeta.runtime !== 'edge')('does not accept rejectOnNotFound option', async () => {
→ XX const record = prisma.user.findFirstOrThrow(
'rejectOnNotFound' option is not supported
`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ testMatrix.setupTestSuite((_suiteConfig, _suiteMeta, clientMeta) => {
Invalid \`prisma.user.findUniqueOrThrow()\` invocation in
/client/tests/functional/methods/findUniqueOrThrow/tests.ts:0:0
XX })
XX
XX test('does not accept rejectOnNotFound option', async () => {
XX // TODO: Edge: skipped because of the error snapshot
XX testIf(clientMeta.runtime !== 'edge')('does not accept rejectOnNotFound option', async () => {
→ XX const record = prisma.user.findUniqueOrThrow(
'rejectOnNotFound' option is not supported
`)
Expand Down

0 comments on commit d64ca7e

Please sign in to comment.