IT lexicon Programming Mocking

Mocking

Programming På svenska → Updated: 2026-05-23

In tests, replacing a real component (database, API, clock) with a fake that behaves predictably.

Makes unit tests fast and independent. Risk: over-mock and you're only testing the mock. Integration and E2E tests with real dependencies balance things out.

← Back to the lexicon