@@ -497,7 +497,7 @@ describe('Zod plugin tests', () => {
497
497
expect ( schema . safeParse ( { arr : [ 4 ] } ) . error . issues [ 1 ] . path ) . toEqual ( [ 'arr' , 'every' ] ) ;
498
498
expect ( schema . safeParse ( { arr : [ 4 ] } ) . error . issues [ 2 ] . path ) . toEqual ( [ 'arr' , 'some' ] ) ;
499
499
expect ( schema . safeParse ( { arr : [ 1 , 2 , 3 ] } ) . success ) . toBeTruthy ( ) ;
500
- } )
500
+ } ) ;
501
501
502
502
it ( 'full-text search' , async ( ) => {
503
503
const model = `
@@ -788,6 +788,11 @@ describe('Zod plugin tests', () => {
788
788
provider = 'prisma-client-js'
789
789
}
790
790
791
+ plugin enhancer {
792
+ provider = '@core/enhancer'
793
+ output = "$projectRoot/enhance"
794
+ }
795
+
791
796
plugin zod {
792
797
provider = "@core/zod"
793
798
output = "$projectRoot/zod"
@@ -801,7 +806,7 @@ describe('Zod plugin tests', () => {
801
806
password String @omit
802
807
}
803
808
` ,
804
- { addPrelude : false , pushDb : false , projectDir }
809
+ { addPrelude : false , pushDb : false , projectDir, getPrismaOnly : true , generateNoCompile : true }
805
810
) ;
806
811
807
812
expect ( fs . existsSync ( path . join ( projectDir , 'zod' , 'test.txt' ) ) ) . toBeFalsy ( ) ;
@@ -822,6 +827,11 @@ describe('Zod plugin tests', () => {
822
827
generator js {
823
828
provider = 'prisma-client-js'
824
829
}
830
+
831
+ plugin enhancer {
832
+ provider = '@core/enhancer'
833
+ output = "$projectRoot/enhance"
834
+ }
825
835
826
836
plugin zod {
827
837
provider = "@core/zod"
@@ -836,7 +846,7 @@ describe('Zod plugin tests', () => {
836
846
password String @omit
837
847
}
838
848
` ,
839
- { addPrelude : false , pushDb : false , projectDir }
849
+ { addPrelude : false , pushDb : false , projectDir, generateNoCompile : true }
840
850
)
841
851
) . rejects . toThrow ( 'already exists and is not a directory' ) ;
842
852
} ) ;
0 commit comments