mock-implementation
Mock and spy utilities for test files. Provides helpers to spy on methods with access to original implementations.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| MockImplementationParams | Parameters for mockImplementation. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| mockImplementation | Spies on a method and replaces it with an implementation that receives originalImplementation as its first argument, followed by the real call arguments. |