Skip to content

Commit

Permalink
test: elaborate on graphql handlers in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed May 8, 2024
1 parent b17099a commit 4a875d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/typings/graphql.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ it('graphql handlers allow passthrough responses', () => {
})

it('graphql handlers allow error response', () => {
graphql.query('GetUser', () => HttpResponse.error())

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.7)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.8)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.9)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.0)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.1)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.2)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.3)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34

Check failure on line 145 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.4)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. Property '[bodyType]' is missing in type 'Response' but required in type 'StrictResponse<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:145:34
graphql.mutation('UpdatePost', () => HttpResponse.error())

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.7)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.8)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.9)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.0)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.1)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.2)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.3)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40

Check failure on line 146 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.4)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:146:40
graphql.operation(() => HttpResponse.error())

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.7)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.8)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (4.9)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.0)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.1)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.2)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.3)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27

Check failure on line 147 in test/typings/graphql.test-d.ts

View workflow job for this annotation

GitHub Actions / typescript (5.4)

graphql.test-d.ts > graphql handlers allow error response

TypeCheckError: Type 'Response' is not assignable to type 'AsyncResponseResolverReturnType<GraphQLResponseBody<GraphQLQuery>>'. ❯ graphql.test-d.ts:147:27
})

Expand Down

0 comments on commit 4a875d3

Please sign in to comment.