Skip to content

Commit

Permalink
Ignore aborted condition test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
igor.luckenkov committed Feb 11, 2023
1 parent f47dee7 commit e4b51d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,9 @@ function completeValue(
result: unknown,
asyncPayloadRecord?: AsyncPayloadRecord,
): PromiseOrValue<unknown> {
// Ignoring test coverage for abortion check since Node 14 doesn't support AbortSignal
// and this condition is never true.
/* c8 ignore next 3 */
if (exeContext.abortion?.executionAbortSignal.aborted) {
throw new GraphQLError('Execution aborted.');
}
Expand Down

0 comments on commit e4b51d3

Please sign in to comment.