Skip to main content

BettererTestGoal

API > @betterer/betterer > BettererTestGoal

A function that returns whether the test has met its goal.

Signature

export declare type BettererTestGoal<DeserialisedType> = (result: DeserialisedType) => MaybeAsync<boolean>;

Example

export function goal (result: number): boolean {
return result === 0;
}