chore: triage log output suggestions
This commit is contained in:
+5
-1
@@ -185,12 +185,16 @@ describe('commitAndPush', () => {
|
||||
});
|
||||
const logs = [];
|
||||
const originalLog = console.log;
|
||||
console.log = (...args) => { logs.push(args.join(' ')); };
|
||||
const originalWarn = console.warn;
|
||||
const capture = (...args) => { logs.push(args.join(' ')); };
|
||||
console.log = capture;
|
||||
console.warn = capture;
|
||||
|
||||
try {
|
||||
await commitAndPush(workspace, repoDir, spawn, sourceRoot);
|
||||
} finally {
|
||||
console.log = originalLog;
|
||||
console.warn = originalWarn;
|
||||
}
|
||||
|
||||
assert.ok(logs.some(line => line.includes('Step7 commit 成功但 push 失敗')));
|
||||
|
||||
Reference in New Issue
Block a user