story-kit: merge 236_story_show_test_results_for_a_story_in_expanded_work_item

This commit is contained in:
Dave
2026-02-28 09:38:51 +00:00
parent c434aa3016
commit 894231428e
6 changed files with 609 additions and 37 deletions

View File

@@ -107,6 +107,17 @@ export interface WorkItemContent {
name: string | null;
}
export interface TestCaseResult {
name: string;
status: "pass" | "fail";
details: string | null;
}
export interface TestResultsResponse {
unit: TestCaseResult[];
integration: TestCaseResult[];
}
export interface FileEntry {
name: string;
kind: "file" | "dir";
@@ -280,6 +291,13 @@ export const api = {
baseUrl,
);
},
getTestResults(storyId: string, baseUrl?: string) {
return requestJson<TestResultsResponse | null>(
`/work-items/${encodeURIComponent(storyId)}/test-results`,
{},
baseUrl,
);
},
};
export class ChatWebSocket {