Testing · Junior · Question 30 of 78
What is a mock in testing?
- ✓Correct answer: A fake replacement for a dependency that lets you control its behaviour and check how it was called
- 2A test that always passes
- 3A copy of the production database
Explanation
Strictly, “test doubles” are dummies, stubs, spies, mocks and fakes; in everyday speech all of them are called mocks.