Design Patterns · Senior · Question 68 of 75
What do consumer-driven contract tests (e.g. Pact) give a frontend and backend?
- ✓Correct answer: The frontend records the requests and responses it relies on; the backend verifies them in CI, catching breaking API changes early
- 2End-to-end UI screenshots
- 3Load testing
Explanation
They're faster and more targeted than full end-to-end environments for catching integration drift.