Testing
Test Spies Explained: Observe Calls Without Intercepting Them
A test spy sits between your code and a real dependency. It lets the real call happen while recording everything: how many times it was called, with what arguments, and what it returned. This makes spies useful in a narrow but important set of scenarios where neither mocks nor stubs