mock-vs-stub-vs-spy

Stubs provide canned responses to calls made during tests Use when writing and organizing tests. Testing category skill.