( projectPath: string, srcBaseDir: string, workspaceName: string )
| 25 | } |
| 26 | |
| 27 | async function createWorkspaceWorktree( |
| 28 | projectPath: string, |
| 29 | srcBaseDir: string, |
| 30 | workspaceName: string |
| 31 | ): Promise<string> { |
| 32 | const workspacePath = path.join(srcBaseDir, path.basename(projectPath), workspaceName); |
| 33 | await fs.mkdir(path.dirname(workspacePath), { recursive: true }); |
| 34 | execFileSync("git", ["worktree", "add", "-b", workspaceName, workspacePath, "main"], { |
| 35 | cwd: projectPath, |
| 36 | stdio: "ignore", |
| 37 | }); |
| 38 | return workspacePath; |
| 39 | } |
| 40 | |
| 41 | describe("MultiProjectRuntime", () => { |
| 42 | let rootDir: string; |
no test coverage detected