• Creates an ExpectationResult - that can be returned by a matcher - based on a boolean condition.

    This function will probably be the preferred way to implement most matchers.

    For details, please refer to the documentation of BooleanMatcherRequirements.

    Parameters

    • requirements: Readonly

    Returns ExpectationResult