import { type Spy } from "https://deno.land/x/rimbu@1.2.0/spy/mod.ts";
const { FnMeta } = Spy;
The extra information added to spied functions.
Type Parameters
F extends Func
Methods
getter
calls(): Parameters<F>[]Returns an array containing, for each received spy call, the given parameters.
setStub(stub: Spy.FnStub<F> | undefined): void
Sets a stub implementation for this spy function, which will be used instead of the current function implementation upon the next received call.
Resets the implementation used for the next spy function call to the original one used at construction time.