Interface SpyCall<Self, Args, Return>

Call information recorded by a spy.

interface SpyCall<Self, Args, Return> {
    args: Args;
    error?: Error;
    returned?: Return;
    self?: Self;
}

Type Parameters

  • Self = any
  • Args extends unknown[] = any[]
  • Return = any

Properties

args: Args

Arguments passed to a function when called.

error?: Error

The error value that was thrown by a function.

returned?: Return

The value that was returned by a function.

self?: Self

The instance that a method was called on.