Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/testing/mock.ts>SpyCall

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface SpyCall
import { type SpyCall } from "https://deno.land/std@0.146.0/testing/mock.ts";

Call information recorded by a spy.

Type Parameters

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

Properties

args: Args

Arguments passed to a function when called.

optional
returned: Return

The value that was returned by a function.

optional
error: Error

The error value that was thrown by a function.

optional
self: Self

The instance that a method was called on.