- nockHandler(graphqlHandler, options?): ReplyFn
Parameters
- graphqlHandler: GraphQLHandler
Optional
options: {
checkGraphQLResult?: ((result: Record<string, any>) => void);
checkRequest?: ((request: ClientRequest & {
headers: Record<string, string>;
}, body: Body) => void);
}Optional
checkGraphQLResult?: ((result: Record<string, any>) => void)
- (result): void
Parameters
- result: Record<string, any>
Returns void
Optional
checkRequest?: ((request: ClientRequest & {
headers: Record<string, string>;
}, body: Body) => void)
- (request, body): void
Parameters
- request: ClientRequest & {
headers: Record<string, string>;
} - body: Body
Returns void
Returns ReplyFn