Situation: I was building the frontend dashboard for an enterprise compliance reporting tool, which depended on a new aggregation endpoint being developed by a backend teammate whose timeline slipped by six days due to unexpected database schema migrations.
Task: With our fixed customer demo date looming, I needed to keep frontend development moving forward without blocking on the backend deliverable or creating friction with my colleague.
Action: Rather than complaining or sitting idle, I met with the backend engineer to agree on a strict JSON API contract. Using MSW (Mock Service Worker), I created a mock server in our frontend repository that simulated the endpoint with realistic latency, edge-case validation errors, and empty states. This allowed me to build, test, and style all dashboard views and error states independently. I also offered to help my teammate by writing unit tests for their schema migration scripts to help them finish faster.
Result: When the real backend endpoint was deployed, the mock layer allowed us to integrate in under an hour with zero contract discrepancies. We completed the enterprise demo on time, and my teammate expressed deep gratitude for the collaborative support during their delay.