Skip to content

Commit 96cd8cf

Browse files
committed
fix tests
1 parent 0636d63 commit 96cd8cf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

tests/integration/tests/plugins/zod.test.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ describe('Zod plugin tests', () => {
497497
expect(schema.safeParse({ arr: [4] }).error.issues[1].path).toEqual(['arr', 'every']);
498498
expect(schema.safeParse({ arr: [4] }).error.issues[2].path).toEqual(['arr', 'some']);
499499
expect(schema.safeParse({ arr: [1, 2, 3] }).success).toBeTruthy();
500-
})
500+
});
501501

502502
it('full-text search', async () => {
503503
const model = `
@@ -788,6 +788,11 @@ describe('Zod plugin tests', () => {
788788
provider = 'prisma-client-js'
789789
}
790790
791+
plugin enhancer {
792+
provider = '@core/enhancer'
793+
output = "$projectRoot/enhance"
794+
}
795+
791796
plugin zod {
792797
provider = "@core/zod"
793798
output = "$projectRoot/zod"
@@ -801,7 +806,7 @@ describe('Zod plugin tests', () => {
801806
password String @omit
802807
}
803808
`,
804-
{ addPrelude: false, pushDb: false, projectDir }
809+
{ addPrelude: false, pushDb: false, projectDir, getPrismaOnly: true, generateNoCompile: true }
805810
);
806811

807812
expect(fs.existsSync(path.join(projectDir, 'zod', 'test.txt'))).toBeFalsy();
@@ -822,6 +827,11 @@ describe('Zod plugin tests', () => {
822827
generator js {
823828
provider = 'prisma-client-js'
824829
}
830+
831+
plugin enhancer {
832+
provider = '@core/enhancer'
833+
output = "$projectRoot/enhance"
834+
}
825835
826836
plugin zod {
827837
provider = "@core/zod"
@@ -836,7 +846,7 @@ describe('Zod plugin tests', () => {
836846
password String @omit
837847
}
838848
`,
839-
{ addPrelude: false, pushDb: false, projectDir }
849+
{ addPrelude: false, pushDb: false, projectDir, generateNoCompile: true }
840850
)
841851
).rejects.toThrow('already exists and is not a directory');
842852
});

0 commit comments

Comments
 (0)