Objective
Implement contract testing to prevent API breaking changes.
Implementation
// Consumer test (UI):
pact.AddInteraction().
Given("Session 123 exists").
UponReceiving("A request for session details").
WithRequest("GET", "/api/v1/sessions/123").
WillRespondWith(200, map[string]string{
"id": "123",
"status": "running",
})
Acceptance Criteria
Files
ui/tests/pact/ (NEW)
api/tests/pact/ (NEW)
.github/workflows/contract-tests.yml (NEW)
Objective
Implement contract testing to prevent API breaking changes.
Implementation
Acceptance Criteria
Files
ui/tests/pact/(NEW)api/tests/pact/(NEW).github/workflows/contract-tests.yml(NEW)