test: field level validation errors (#10614)

Continuation of #10575. Field level validations error were incorrectly
throwing uniqueness errors. This was fixed but lacking tests.
This commit is contained in:
Jacob Fletcher
2025-01-16 15:55:34 -05:00
committed by GitHub
parent e80d67987e
commit 86ff0a434c
7 changed files with 219 additions and 91 deletions

View File

@@ -88,6 +88,13 @@ export interface UserAuthOperations {
export interface Post {
id: string;
title: string;
D1?: {
D2?: {
D3?: {
D4?: string | null;
};
};
};
hasTransaction?: boolean | null;
throwAfterChange?: boolean | null;
arrayWithIDs?:
@@ -440,6 +447,19 @@ export interface PayloadMigration {
*/
export interface PostsSelect<T extends boolean = true> {
title?: T;
D1?:
| T
| {
D2?:
| T
| {
D3?:
| T
| {
D4?: T;
};
};
};
hasTransaction?: T;
throwAfterChange?: T;
arrayWithIDs?: