From 2cd67223cae58e71b5cf3c2d53ea44031174680c Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Mon, 25 Mar 2024 14:29:37 +0100 Subject: [PATCH] :shrug" --- packages/graphql-yoga/__tests__/utilities.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/graphql-yoga/__tests__/utilities.ts b/packages/graphql-yoga/__tests__/utilities.ts index 050fdcd4f5..584832c7e7 100644 --- a/packages/graphql-yoga/__tests__/utilities.ts +++ b/packages/graphql-yoga/__tests__/utilities.ts @@ -4,7 +4,10 @@ import { Repeater } from '@repeaterjs/repeater'; /** Parse SSE event stream and yield data pieces. */ export function eventStream(source: ReadableStream) { return new Repeater(async (push, end) => { - const cancel: Promise<{ done: true }> = end.then(() => ({ done: true })); + const cancel: Promise<{ done: true; value: undefined }> = end.then(() => ({ + done: true, + value: undefined, + })); const iterable = source[Symbol.asyncIterator](); // eslint-disable-next-line no-constant-condition