Bun

interface

assert.default.AssertionErrorOptions

interface AssertionErrorOptions

  • actual?: unknown

    The actual property on the error instance.

  • diff?: 'simple' | 'full'

    If set to 'full', shows the full diff in assertion errors.

  • expected?: unknown

    The expected property on the error instance.

  • message?: string

    If provided, the error message is set to this value.

  • operator?: string

    The operator property on the error instance.

  • stackStartFn?: Function

    If provided, the generated stack trace omits frames before this function.