From 1ffecd4248ad8d9e30695c0031919ac18eaedba2 Mon Sep 17 00:00:00 2001 From: Pepijn Verlaan Date: Tue, 27 Sep 2022 17:35:28 +0200 Subject: [PATCH] Failing test for when a generator with a race is called --- types/index.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/index.test.ts b/types/index.test.ts index 5745d5e..52c64ca 100644 --- a/types/index.test.ts +++ b/types/index.test.ts @@ -214,6 +214,12 @@ function* mySaga(): Effects.SagaGenerator { }), }); + // $ExpectType boolean + yield* Effects.call(function* () { + yield* Effects.race({ timeout: Effects.delay(1) }); + return true; + }); + function outer( // eslint-disable-next-line @typescript-eslint/no-unused-vars emit: (item: T) => T,