Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rhum/src/spy/spy_mixin.ts>createSpy

A test double library
Latest
function createSpy
import { createSpy } from "https://deno.land/x/rhum@v2.2.0/src/spy/spy_mixin.ts";

Create a spy as an extension of an original object.

Type Parameters

OriginalConstructor
OriginalObject

Parameters

OriginalClass: OriginalConstructor
...originalConstructorArgs: unknown[]