All challenges
Multiple ChoiceIntermediate 30s

Mocking strategies

Choose the best answer for: test doubles
Options
  1. 1No mocking at all, hitting every external service for real
  2. 2Use real external services only, never mocks or stubs
  3. 3Mock external services; use test DB for database; stub functions
  4. 4Mock everything including the database for every test

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle