Function doesNotThrow

  • Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.

    Parameters

    • fn: Function | (() => any)
    • Rest...__namedParameters: MessageExtra

    Returns boolean | Error