Mock
Also known as mock object · mock function · mocking
A test double configured to replace a collaborator and help verify expected calls or interactions.
In the real world
A mocked sendEmail function lets a test assert that a signup flow requested one welcome email.