-
Notifications
You must be signed in to change notification settings - Fork 0
Double
GradedJestRisk edited this page Mar 5, 2020
·
2 revisions
List:
- dummy objects: just used to fill parameter lists (to compile)
- fake objects: have working implementations, take some shortcut (eg. in-memory database)
- stubs: canned answers to calls made during the test, not responding at all to other requests
- spies: stubs, that also record some information based on how they were called.
- mocks: pre-programmed with expectations which form a specification of the calls they are expected to receive.