Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(cli): adding more test for prisma format (#6234)
- Loading branch information
1 parent
14ffd00
commit 4e5f93f
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/packages/cli/src/__tests__/fixtures/example-project/prisma/broken.prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
it has broken schema |
19 changes: 19 additions & 0 deletions
19
src/packages/cli/src/__tests__/fixtures/example-project/prisma/missing-backrelation.prisma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
generator client { | ||
provider = "prisma-client-js" | ||
output = "../generated/client" | ||
} | ||
|
||
datasource db { | ||
provider = "sqlite" | ||
url = "file:dev.db" | ||
} | ||
|
||
model Post { | ||
id Int @id | ||
user User | ||
} | ||
|
||
model User { | ||
id Int @id | ||
posts Post[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters