Simplify return types for passes

This commit is contained in:
Michael B. Gale
2026-07-09 17:17:15 +01:00
parent 0c7580ae89
commit 31842a7e06

View File

@@ -281,9 +281,7 @@ export class TestEnv<
return this.fn(this.state as unknown as ActionState<Fs>, ...this.args);
}
public passes<T>(
assertion: (makeCall: () => R) => T | Promise<T>,
): T | Promise<T> {
public passes<T>(assertion: (makeCall: () => R) => Promise<T>): Promise<T> {
return assertion(() => {
const result = this.call();
return result;