import { type Spy } from "https://deno.land/x/rimbu@1.1.0/spy/mod.ts";
const { ClsMeta } = Spy;
The metadata object type for a spied class.
Methods
getter
instances(): Spy.ClsObj<C, A>[]Returns an array of class instance metadata objects containing all instances created from the spy class.
getter
constructorCalls(): A[]Returns an array of received constructor call parameters.
Resets the current spy class constructor stub and all the instances method stubs.
Sets the used constructor stub function for new instances of the spy class.