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:
Eyejoker
2026-03-25 22:31:52 +09:00
parent 33fcf9c788
commit 57f2045ca6
3 changed files with 23 additions and 26 deletions

View File

@@ -142,7 +142,9 @@ Managed by host-driven watcher.
expect(result.terminal).toBe(true); expect(result.terminal).toBe(true);
expect(result.resultSummary).toContain('실패'); 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('판정: 실패');
expect(result.completionMessage).toContain('- 실패 job: test'); expect(result.completionMessage).toContain('- 실패 job: test');
}); });

View File

@@ -90,9 +90,7 @@ export function parseGitHubCiMetadata(
}; };
} }
export function serializeGitHubCiMetadata( export function serializeGitHubCiMetadata(metadata: GitHubCiMetadata): string {
metadata: GitHubCiMetadata,
): string {
return JSON.stringify(metadata); return JSON.stringify(metadata);
} }
@@ -119,9 +117,7 @@ function formatConclusionLabel(conclusion: string | null | undefined): string {
} }
} }
async function fetchFailedJobs( async function fetchFailedJobs(metadata: GitHubCiMetadata): Promise<string[]> {
metadata: GitHubCiMetadata,
): Promise<string[]> {
const stdout = await execGhApi([ const stdout = await execGhApi([
`repos/${metadata.repo}/actions/runs/${metadata.run_id}/jobs?per_page=100`, `repos/${metadata.repo}/actions/runs/${metadata.run_id}/jobs?per_page=100`,
]); ]);

View File

@@ -5,25 +5,24 @@ const {
writeTasksSnapshotMock, writeTasksSnapshotMock,
loggerDebugMock, loggerDebugMock,
checkGitHubActionsRunMock, checkGitHubActionsRunMock,
} = } = vi.hoisted(() => ({
vi.hoisted(() => ({ runAgentProcessMock: vi.fn(async () => ({
runAgentProcessMock: vi.fn(async () => ({ status: 'success' as const,
status: 'success' as const, result: 'done',
result: 'done', })),
})), writeTasksSnapshotMock: vi.fn(),
writeTasksSnapshotMock: vi.fn(), loggerDebugMock: vi.fn(),
loggerDebugMock: vi.fn(), checkGitHubActionsRunMock: vi.fn(
checkGitHubActionsRunMock: vi.fn( async (): Promise<{
async (): Promise<{ terminal: boolean;
terminal: boolean; resultSummary: string;
resultSummary: string; completionMessage?: string;
completionMessage?: string; }> => ({
}> => ({ terminal: false,
terminal: false, resultSummary: 'GitHub Actions run 123 is in_progress',
resultSummary: 'GitHub Actions run 123 is in_progress', }),
}), ),
), }));
}));
vi.mock('./provider-fallback.js', () => ({ vi.mock('./provider-fallback.js', () => ({
detectFallbackTrigger: vi.fn((error?: string | null) => { detectFallbackTrigger: vi.fn((error?: string | null) => {