diff --git a/driver-adapters-wasm/turso-cf-basic/index.test.js b/driver-adapters-wasm/turso-cf-basic/index.test.js index e6e02502ac2a..16f7f74bfd0a 100644 --- a/driver-adapters-wasm/turso-cf-basic/index.test.js +++ b/driver-adapters-wasm/turso-cf-basic/index.test.js @@ -84,22 +84,20 @@ test('prisma version and output', async () => { }, ] `) -// TODO skipped because of bug: "User Not Found" - -// expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) -// expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) + expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) + expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) // Skipping this because of too many sub-requests (limit is 50 per fetch call) diff --git a/driver-adapters-wasm/turso-cf-basic/src/index.js b/driver-adapters-wasm/turso-cf-basic/src/index.js index 58dec462f2a9..23b4eac8c4a7 100644 --- a/driver-adapters-wasm/turso-cf-basic/src/index.js +++ b/driver-adapters-wasm/turso-cf-basic/src/index.js @@ -141,25 +141,23 @@ export default { age: true, }, }), - // TODO skipped because of bug: "User Not Found" - - // findFirstOrThrow: await prisma.user.findFirstOrThrow({ - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), - // findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ - // where: { - // email: 'test-2@prisma.io', - // }, - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), + findFirstOrThrow: await prisma.user.findFirstOrThrow({ + select: { + age: true, + email: true, + name: true, + }, + }), + findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ + where: { + email: 'test-2@prisma.io', + }, + select: { + age: true, + email: true, + name: true, + }, + }), // Skipping this because of too many sub-requests (limit is 50 per fetch call) // upsert: await prisma.user.upsert({ diff --git a/driver-adapters-wasm/turso-cfpages-basic/functions/function.js b/driver-adapters-wasm/turso-cfpages-basic/functions/function.js index 37e659a75aaf..bc9227368cde 100644 --- a/driver-adapters-wasm/turso-cfpages-basic/functions/function.js +++ b/driver-adapters-wasm/turso-cfpages-basic/functions/function.js @@ -140,25 +140,24 @@ export async function onRequest(context) { age: true, }, }), - // TODO skipped because of bug: "User Not Found" - - // findFirstOrThrow: await prisma.user.findFirstOrThrow({ - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), - // findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ - // where: { - // email: 'test-2@prisma.io', - // }, - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), + findFirstOrThrow: await prisma.user.findFirstOrThrow({ + select: { + age: true, + email: true, + name: true, + }, + }), + findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ + where: { + email: 'test-2@prisma.io', + }, + select: { + age: true, + email: true, + name: true, + }, + }), + // Skipping this because of too many sub-requests (limit is 50 per fetch call) // upsert: await prisma.user.upsert({ diff --git a/driver-adapters-wasm/turso-cfpages-basic/index.test.js b/driver-adapters-wasm/turso-cfpages-basic/index.test.js index a2348adab627..0dad03d8a020 100644 --- a/driver-adapters-wasm/turso-cfpages-basic/index.test.js +++ b/driver-adapters-wasm/turso-cfpages-basic/index.test.js @@ -84,22 +84,20 @@ test('prisma version and output', async () => { }, ] `) -// TODO skipped because of bug: "User Not Found" - -// expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) -// expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) + expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) + expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) // Skipping this because of too many sub-requests (limit is 50 per fetch call) diff --git a/driver-adapters-wasm/turso-vercel-nextjs-edgemw/index.test.js b/driver-adapters-wasm/turso-vercel-nextjs-edgemw/index.test.js index eaaa310fbc81..a19bcdbc45f6 100644 --- a/driver-adapters-wasm/turso-vercel-nextjs-edgemw/index.test.js +++ b/driver-adapters-wasm/turso-vercel-nextjs-edgemw/index.test.js @@ -94,22 +94,20 @@ test('prisma version and output', async () => { }, ] `) -// TODO skipped because of bug: "User Not Found" - -// expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) -// expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` -// { -// "age": 29, -// "email": "test-2@prisma.io", -// "name": "Test 2", -// } -// `) + expect(regResult.findFirstOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) + expect(regResult.findUniqueOrThrow).toMatchInlineSnapshot(` +{ + "age": 29, + "email": "test-2@prisma.io", + "name": "Test 2", +} +`) expect(regResult.upsert).toMatchInlineSnapshot(` { "age": 30, diff --git a/driver-adapters-wasm/turso-vercel-nextjs-edgemw/middleware.js b/driver-adapters-wasm/turso-vercel-nextjs-edgemw/middleware.js index 4e33e76b3b27..c44870aeb314 100644 --- a/driver-adapters-wasm/turso-vercel-nextjs-edgemw/middleware.js +++ b/driver-adapters-wasm/turso-vercel-nextjs-edgemw/middleware.js @@ -141,25 +141,23 @@ async function getResponse() { age: true, }, }), - // TODO skipped because of bug: "User Not Found" - - // findFirstOrThrow: await prisma.user.findFirstOrThrow({ - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), - // findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ - // where: { - // email: 'test-2@prisma.io', - // }, - // select: { - // age: true, - // email: true, - // name: true, - // }, - // }), + findFirstOrThrow: await prisma.user.findFirstOrThrow({ + select: { + age: true, + email: true, + name: true, + }, + }), + findUniqueOrThrow: await prisma.user.findUniqueOrThrow({ + where: { + email: 'test-2@prisma.io', + }, + select: { + age: true, + email: true, + name: true, + }, + }), upsert: await prisma.user.upsert({ where: { email: 'test-4@prisma.io',