diff --git a/packages/schema/tests/generator/prisma-generator.test.ts b/packages/schema/tests/generator/prisma-generator.test.ts index 6eaf06399..5affcec77 100644 --- a/packages/schema/tests/generator/prisma-generator.test.ts +++ b/packages/schema/tests/generator/prisma-generator.test.ts @@ -34,7 +34,6 @@ describe('Prisma generator test', () => { provider = 'postgresql' url = env("DATABASE_URL") directUrl = env("DATABASE_URL") - shadowDatabaseUrl = env("DATABASE_URL") extensions = [pg_trgm, postgis(version: "3.3.2"), uuid_ossp(map: "uuid-ossp", schema: "extensions")] schemas = ["auth", "public"] } @@ -67,7 +66,6 @@ describe('Prisma generator test', () => { expect(content).toContain('provider = "postgresql"'); expect(content).toContain('url = env("DATABASE_URL")'); expect(content).toContain('directUrl = env("DATABASE_URL")'); - expect(content).toContain('shadowDatabaseUrl = env("DATABASE_URL")'); expect(content).toContain( 'extensions = [pg_trgm, postgis(version: "3.3.2"), uuid_ossp(map: "uuid-ossp", schema: "extensions")]' ); @@ -253,9 +251,9 @@ describe('Prisma generator test', () => { expect(content).toContain(`@@map("_Role")`); expect(content).toContain(`@map("admin")`); expect(content).toContain(`@map("customer")`); - expect(content).toContain('/// Admin role documentation line 1\n' + - ' /// Admin role documentation line 2\n' + - ' ADMIN'); + expect(content).toContain( + '/// Admin role documentation line 1\n' + ' /// Admin role documentation line 2\n' + ' ADMIN' + ); }); it('attribute passthrough', async () => { diff --git a/packages/schema/tests/schema/validation/datasource-validation.test.ts b/packages/schema/tests/schema/validation/datasource-validation.test.ts index 469ba5ac1..0c90da4db 100644 --- a/packages/schema/tests/schema/validation/datasource-validation.test.ts +++ b/packages/schema/tests/schema/validation/datasource-validation.test.ts @@ -13,9 +13,9 @@ describe('Datasource Validation Tests', () => { cause: [ { message: 'datasource must include a "provider" field' }, { message: 'datasource must include a "url" field' }, - ] - } - }) + ], + }, + }); }); it('dup fields', async () => { @@ -63,14 +63,6 @@ describe('Datasource Validation Tests', () => { } `) ).toContain('"url" must be set to a string literal or an invocation of "env" function'); - - expect( - await loadModelWithError(` - datasource db { - shadowDatabaseUrl = 123 - } - `) - ).toContain('"shadowDatabaseUrl" must be set to a string literal or an invocation of "env" function'); }); it('invalid relationMode value', async () => { @@ -96,7 +88,6 @@ describe('Datasource Validation Tests', () => { datasource db { provider = "postgresql" url = "url" - shadowDatabaseUrl = "shadow" relationMode = "prisma" } `); @@ -105,7 +96,6 @@ describe('Datasource Validation Tests', () => { datasource db { provider = "postgresql" url = env("url") - shadowDatabaseUrl = env("shadowUrl") relationMode = "foreignKeys" } `);