An object or function that stands in for a real dependency during a test, like mock.fn() in Node.js. It can also record the calls it receives.