mock
Summary
Utilities for creating mock functions and method spies. Mirrors the names
on Node.js's built-in MockTracker from node:test.
Signature
const mock: { fn: { (impl: T): MockFunction<T>; (impl?: T): MockFunction<T> }; method: (obj: T, method: K, impl?: T[K] extends (args: any[]) => any ? (args: Parameters<any[any]>) => any : never) => MethodMock<Method<T, K>> }