Skip to main content

package @rimbu/spy

The @rimbu/spy package provides experimental, framework‑agnostic utilities for spying on, stubbing and mocking functions, objects and classes in TypeScript without relying on module‑level mocking. Use it to create strongly‑typed spies that track calls, arguments and call sequences across test frameworks (including Deno and ESM setups) while keeping your production APIs unchanged. See the package README and the Spy API docs for usage details.

Interfaces

NameDescription
FuncInterface<F>Utility type to use a Func type in an interface.

Namespaces

NameDescription
SpyContains functions that can be used to Spy, Stub, and partially Mock functions, objects and classes.