Testing · Senior · Question 11 of 75
Where do contract tests fit between a frontend and its API?
- ✓Correct answer: They replace part of the slow integrated E2E tests by checking the request/response contract on both sides independently
- 2They replace all unit tests
- 3They run only in production
Explanation
With Pact, the consumer test produces a contract; the provider verifies it in its pipeline and can block a breaking deploy.