From 31842a7e069dcda6d42abeb3aba3e22d2df3fdb0 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Thu, 9 Jul 2026 17:17:15 +0100 Subject: [PATCH] Simplify return types for `passes` --- src/testing-utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/testing-utils.ts b/src/testing-utils.ts index ec518853f..f340d6dc1 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -281,9 +281,7 @@ export class TestEnv< return this.fn(this.state as unknown as ActionState, ...this.args); } - public passes( - assertion: (makeCall: () => R) => T | Promise, - ): T | Promise { + public passes(assertion: (makeCall: () => R) => Promise): Promise { return assertion(() => { const result = this.call(); return result;