From 8da2f8a9bca22715ac03098a016eb4ffc36056fc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:14:57 +0000 Subject: [PATCH 1/2] Initial plan From 850dd04bdc48997d908e68c16b72f3bb80ecf7a7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:15:41 +0000 Subject: [PATCH 2/2] fix: disconnect correct client instance in zod test finally block Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com> --- tests/e2e/orm/client-api/zod.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/orm/client-api/zod.test.ts b/tests/e2e/orm/client-api/zod.test.ts index 586782f80..abee059d5 100644 --- a/tests/e2e/orm/client-api/zod.test.ts +++ b/tests/e2e/orm/client-api/zod.test.ts @@ -1003,14 +1003,14 @@ describe('Zod schema factory test', () => { describe('create factory functions tests', () => { it('can be constructed directly from client', async () => { + const localClient = await createTestClient(schema); try { - const client = await createTestClient(schema); - const factory = createQuerySchemaFactory(client); + const factory = createQuerySchemaFactory(localClient); const s = factory.makeFindManySchema('User'); expect(s.safeParse({ where: { email: 'u@test.com' } }).success).toBe(true); expect(s.safeParse({ where: { notAField: 'val' } }).success).toBe(false); } finally { - await client.$disconnect(); + await localClient.$disconnect(); } });