Skip to content

Commit e5d8a1f

Browse files
committed
update tests
1 parent fcbd538 commit e5d8a1f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/schema/tests/schema/validation/datasource-validation.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ describe('Datasource Validation Tests', () => {
1010
expect(result).toMatchObject({
1111
status: 'rejected',
1212
reason: {
13-
cause: [
14-
{ message: 'datasource must include a "provider" field' },
15-
{ message: 'datasource must include a "url" field' },
16-
],
13+
cause: [{ message: 'datasource must include a "provider" field' }],
1714
},
1815
});
1916
});

tests/integration/tests/cli/generate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ model Post {
4545
// set up project
4646
fs.writeFileSync('package.json', JSON.stringify({ name: 'my app', version: '1.0.0' }));
4747
createNpmrc();
48-
installPackage('prisma @prisma/client zod@^3.25.0 @types/node@20');
48+
installPackage('prisma@6.19.x @prisma/client@6.19.x zod@^3.25.0 @types/node@20');
4949
installPackage(path.join(__dirname, '../../../../packages/runtime/dist'));
5050

5151
// set up schema

0 commit comments

Comments
 (0)