Skip to content

HookOptions

[<Interface>]
type HookOptions =
    abstract member signal: AbortSignal option with get, set
    abstract member timeout: float option with get, set
    static member Create (?signal: AbortSignal, ?timeout: float) : HookOptions
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Configuration options for hooks.

@since v18.8.0

Properties

abstract member signal: AbortSignal option with get, set

Allows aborting an in-progress hook.

abstract member timeout: float option with get, set

A number of milliseconds the hook will fail after. If unspecified, subtests inherit this value from their parent.

Methods

static member Create (?signal: AbortSignal, ?timeout: float) : HookOptions