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.
Test double
A fake object (mock, stub, fake) that replaces a real dependency in a test.
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.