SpyCall

import { SpyCall } from "jsr:@ende/testing/mock";

interface

interface SpyCall<Self = any, Args extends unknown[] = any[], Return = any>

Call information recorded by a spy.

Properties

args

args: Args

Arguments passed to a function when called.

returned

returned?: Return

The value that was returned by a function.

error

error?: Error

The error value that was thrown by a function.

self

self?: Self

The instance that a method was called on.

Source