Bun

interface

test.default.HookOptions

interface HookOptions

Configuration options for hooks.

  • signal?: AbortSignal

    Allows aborting an in-progress hook.

  • timeout?: number

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