Skip to content
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
More
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
More
Home
/
Automation Test Engineer
/
Questions
/
Test Doubles
Automation Test Engineer
Test Doubles questions
13 questions on Test Doubles for automation test engineers, easiest first.
Easy
3
Checking an email was sent once
easy
A double that returns fixed data
easy
An in-memory repository
easy
Medium
4
Watching a real method
medium
Faking an async API call
medium
Code that is hard to test
medium
Stubbing a downstream HTTP service
medium
Hard
6
Tests that break on every refactor
hard
Mocking a third-party SDK
hard
A jest.mock factory error
hard
A patch that does nothing
hard
Testing code that uses randomness
hard
A fake that drifted from reality
hard