Contract Testing

You might say

The backend renamed a field in the response, and our frontend crashed on deploy. How can we catch this automatically on commit?

An automated test that records the requests and responses a consumer truly depends on, then verifies that the provider remains compatible.A profile page may read avatar_url and nickname. A consumer test records the request and minimum response; provider verification compares the backend's real response with that contract. Renaming avatar_url to avatar then fails CI before merge. This checks communication at a service boundary, not the whole page, network, or business calculation.
Contract Test
Further reading