interface Spy
A function or instance method wrapper that records all calls made to it.
Type Parameters
Self = anyArgs extends unknown[] = any[]Return = anyCall Signatures
Properties
Methods
restore(): voidIf spying on an instance method, this restores the original instance method.