(projectPath: string)
| 64 | import assert from "node:assert"; |
| 65 | |
| 66 | function initGitRepo(projectPath: string): void { |
| 67 | execSync("git init -b main", { cwd: projectPath, stdio: "ignore" }); |
| 68 | execSync('git config user.email "test@example.com"', { cwd: projectPath, stdio: "ignore" }); |
| 69 | execSync('git config user.name "test"', { cwd: projectPath, stdio: "ignore" }); |
| 70 | // Ensure tests don't hang when developers have global commit signing enabled. |
| 71 | execSync("git config commit.gpgsign false", { cwd: projectPath, stdio: "ignore" }); |
| 72 | execSync("bash -lc 'echo \"hello\" > README.md'", { cwd: projectPath, stdio: "ignore" }); |
| 73 | execSync("git add README.md", { cwd: projectPath, stdio: "ignore" }); |
| 74 | execSync('git commit -m "init"', { cwd: projectPath, stdio: "ignore" }); |
| 75 | } |
| 76 | |
| 77 | async function collectFullHistory(service: HistoryService, workspaceId: string) { |
| 78 | const messages: MuxMessage[] = []; |
no outgoing calls
no test coverage detected