(
errors: readonly any[] | undefined,
args: { message: string }[]
)
| 69 | } |
| 70 | |
| 71 | export function expectGraphQLValidationError ( |
| 72 | errors: readonly any[] | undefined, |
| 73 | args: { message: string }[] |
| 74 | ) { |
| 75 | const unpackedErrors = unpackErrors(errors) |
| 76 | expect(unpackedErrors).toEqual( |
| 77 | args.map(({ message }) => ({ extensions: { code: 'GRAPHQL_VALIDATION_FAILED' }, message })) |
| 78 | ) |
| 79 | } |
| 80 | |
| 81 | export function expectAccessDenied ( |
| 82 | errors: readonly any[] | undefined, |
no test coverage detected