On This Page

UnhandledTestFailuresError

Class in Testing · Testing

A test client shut down after application code failed without a handler, such as an event handler or command that threw or returned a failed Result

The failures list holds the Error records of those failures in order. Reading failures() before shutdown marks the returned failures as expected, and an onError hook handles them instead

class UnhandledTestFailuresError extends FluxerlyErrorclass UnhandledTestFailuresError
  extends FluxerlyError

Constructor#

new UnhandledTestFailuresError(
    failures: readonly LogRecord[]
): UnhandledTestFailuresErrornew UnhandledTestFailuresError(
  failures: readonly LogRecord[]
): UnhandledTestFailuresError

Parameters

failures

Error records of the unhandled failures, in the order they were logged

readonly LogRecord[]

Properties#

_tag#

Discriminator for unhandled failures found when a test client shut down

readonly _tag: "UnhandledTestFailuresError"

failures#

Error records of the unhandled failures, in the order they were logged

readonly failures: readonly LogRecord[]

Inherited#

Inherited from FluxerlyError: code, details, hint, toJSON