style: fix prettier formatting in github-ci and scheduler tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -142,7 +142,9 @@ Managed by host-driven watcher.
|
||||
|
||||
expect(result.terminal).toBe(true);
|
||||
expect(result.resultSummary).toContain('실패');
|
||||
expect(result.completionMessage).toContain('CI 완료: GitHub Actions run 654321');
|
||||
expect(result.completionMessage).toContain(
|
||||
'CI 완료: GitHub Actions run 654321',
|
||||
);
|
||||
expect(result.completionMessage).toContain('판정: 실패');
|
||||
expect(result.completionMessage).toContain('- 실패 job: test');
|
||||
});
|
||||
|
||||
@@ -90,9 +90,7 @@ export function parseGitHubCiMetadata(
|
||||
};
|
||||
}
|
||||
|
||||
export function serializeGitHubCiMetadata(
|
||||
metadata: GitHubCiMetadata,
|
||||
): string {
|
||||
export function serializeGitHubCiMetadata(metadata: GitHubCiMetadata): string {
|
||||
return JSON.stringify(metadata);
|
||||
}
|
||||
|
||||
@@ -119,9 +117,7 @@ function formatConclusionLabel(conclusion: string | null | undefined): string {
|
||||
}
|
||||
}
|
||||
|
||||
async function fetchFailedJobs(
|
||||
metadata: GitHubCiMetadata,
|
||||
): Promise<string[]> {
|
||||
async function fetchFailedJobs(metadata: GitHubCiMetadata): Promise<string[]> {
|
||||
const stdout = await execGhApi([
|
||||
`repos/${metadata.repo}/actions/runs/${metadata.run_id}/jobs?per_page=100`,
|
||||
]);
|
||||
|
||||
@@ -5,25 +5,24 @@ const {
|
||||
writeTasksSnapshotMock,
|
||||
loggerDebugMock,
|
||||
checkGitHubActionsRunMock,
|
||||
} =
|
||||
vi.hoisted(() => ({
|
||||
runAgentProcessMock: vi.fn(async () => ({
|
||||
status: 'success' as const,
|
||||
result: 'done',
|
||||
})),
|
||||
writeTasksSnapshotMock: vi.fn(),
|
||||
loggerDebugMock: vi.fn(),
|
||||
checkGitHubActionsRunMock: vi.fn(
|
||||
async (): Promise<{
|
||||
terminal: boolean;
|
||||
resultSummary: string;
|
||||
completionMessage?: string;
|
||||
}> => ({
|
||||
terminal: false,
|
||||
resultSummary: 'GitHub Actions run 123 is in_progress',
|
||||
}),
|
||||
),
|
||||
}));
|
||||
} = vi.hoisted(() => ({
|
||||
runAgentProcessMock: vi.fn(async () => ({
|
||||
status: 'success' as const,
|
||||
result: 'done',
|
||||
})),
|
||||
writeTasksSnapshotMock: vi.fn(),
|
||||
loggerDebugMock: vi.fn(),
|
||||
checkGitHubActionsRunMock: vi.fn(
|
||||
async (): Promise<{
|
||||
terminal: boolean;
|
||||
resultSummary: string;
|
||||
completionMessage?: string;
|
||||
}> => ({
|
||||
terminal: false,
|
||||
resultSummary: 'GitHub Actions run 123 is in_progress',
|
||||
}),
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock('./provider-fallback.js', () => ({
|
||||
detectFallbackTrigger: vi.fn((error?: string | null) => {
|
||||
|
||||
Reference in New Issue
Block a user