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

x/frugal/dep/std/mock.ts>Stub

A frugal web framework
Go to Latest
interface Stub
implements Spy<Self, Args, Return>
import { type Stub } from "https://deno.land/x/frugal@0.3.0/dep/std/mock.ts";

An instance method replacement that records all calls made to it.

Type Parameters

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

Properties

fake: (this: Self, ...args: Args) => Return

The function that is used instead of the original.