refactor: scope runtime log context

This commit is contained in:
Eyejoker
2026-03-31 17:23:43 +09:00
parent c2ef6572fd
commit 141898f764
8 changed files with 167 additions and 253 deletions

View File

@@ -89,14 +89,19 @@ vi.mock('./agent-runner.js', async () => {
};
});
vi.mock('./logger.js', () => ({
logger: {
vi.mock('./logger.js', () => {
const mockLogger = {
debug: loggerDebugMock,
info: vi.fn(),
warn: vi.fn(),
error: vi.fn(),
},
}));
child: (_bindings?: Record<string, unknown>) => mockLogger,
};
return {
logger: mockLogger,
createScopedLogger: (_bindings?: Record<string, unknown>) => mockLogger,
};
});
vi.mock('./github-ci.js', () => ({
checkGitHubActionsRun: checkGitHubActionsRunMock,