Skip to content

Commit e4b51d3

Browse files
author
igor.luckenkov
committed
Ignore aborted condition test coverage
1 parent f47dee7 commit e4b51d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,9 @@ function completeValue(
892892
result: unknown,
893893
asyncPayloadRecord?: AsyncPayloadRecord,
894894
): PromiseOrValue<unknown> {
895+
// Ignoring test coverage for abortion check since Node 14 doesn't support AbortSignal
896+
// and this condition is never true.
897+
/* c8 ignore next 3 */
895898
if (exeContext.abortion?.executionAbortSignal.aborted) {
896899
throw new GraphQLError('Execution aborted.');
897900
}

0 commit comments

Comments
 (0)