A failed test result. This should not be constructed manually. Instead, testFail should be used.

Constructors

Properties

failMessage: string

Methods

  • Get the value of the passed test, or undefined if the test failed.

    Returns undefined

  • Get the failure message callback of the failed test, or undefined if the test passed.

    Returns string

  • Get the value of the passed test, or throw an error if the test failed.

    Returns never

  • The side data that will be passed to run.

    Returns never

  • For passed tests, asynchronously map the passed value to another value. Failed tests will remain unchanged.

    This will not mutate the test result, and instead return a new test result.

    Returns Promise<TestResultFailed>