File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1003,14 +1003,14 @@ describe('Zod schema factory test', () => {
10031003
10041004 describe ( 'create factory functions tests' , ( ) => {
10051005 it ( 'can be constructed directly from client' , async ( ) => {
1006+ const localClient = await createTestClient ( schema ) ;
10061007 try {
1007- const client = await createTestClient ( schema ) ;
1008- const factory = createQuerySchemaFactory ( client ) ;
1008+ const factory = createQuerySchemaFactory ( localClient ) ;
10091009 const s = factory . makeFindManySchema ( 'User' ) ;
10101010 expect ( s . safeParse ( { where : { email : 'u@test.com' } } ) . success ) . toBe ( true ) ;
10111011 expect ( s . safeParse ( { where : { notAField : 'val' } } ) . success ) . toBe ( false ) ;
10121012 } finally {
1013- await client . $disconnect ( ) ;
1013+ await localClient . $disconnect ( ) ;
10141014 }
10151015 } ) ;
10161016
You can’t perform that action at this time.
0 commit comments