Skip to main content
Module

x/test_suite/test_deps.ts>stub

An extension of Deno's built-in test runner to add setup/teardown hooks and make it easier to organize tests in a format similar to Jasmine, Jest, and Mocha.
Latest
function stub
import { stub } from "https://deno.land/x/test_suite@0.16.1/test_deps.ts";

Replaces an instance method with a Stub.

Type Parameters

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

Parameters

self: Self
property: keyof Self

Type Parameters

Self
Args extends unknown[]
Return

Parameters

self: Self
property: keyof Self
func: (this: Self, ...args: Args) => Return