🧪Test Double
Also known as Test Doubles, Fake Object
A stand-in that takes the place of a real part during a test.
Think of it like
Think of it like a stunt double in a film. It stands in for the real star.
Example
Jack's checkout test cannot charge a real card each run. He swaps the payment service for a test double that always says paid.
Why it matters
Tests stay fast, free and the same each time. That holds even when the real part is slow or out of your hands.