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;