Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/e2e/orm/client-api/zod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand Down
Loading