Skip to content

Commit

Permalink
test(relationMode): cleanup NoAction tests (#15901)
Browse files Browse the repository at this point in the history
* test(relationMode): cleanup NoAction tests

Follows #15885

Since `NoAction` now behaves like `Restrict`, I could combine some tests

+ small typos fixes

* simplify errors for update/updateMany (same error)
  • Loading branch information
Jolg42 committed Oct 20, 2022
1 parent 2bb05a9 commit 630eb6d
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 820 deletions.
2 changes: 1 addition & 1 deletion packages/client/tests/functional/relationMode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Internal Notion pages
- [Findings](https://www.notion.so/prismaio/Phase-1-Report-on-findings-f21c7bb079c5414296286973fdcd62c2)

Note: We are not testing SetNull with `foreignKeys` because it is invalid.
SetNull with a non-optionnal relation errors when the migration DDL is applied for all databases
SetNull with a non-optional relation errors when the migration DDL is applied for all databases
(except for PostgreSQL where it fails at runtime)
Related issue to add a validation error: https://github.com/prisma/prisma/issues/14673

Expand Down

0 comments on commit 630eb6d

Please sign in to comment.