MCPcopy
hub / github.com/coder/mux / createTestProject

Function createTestProject

src/node/services/taskService.test.ts:178–189  ·  view source on GitHub ↗
(
  rootDir: string,
  name = "repo",
  options?: { initGit?: boolean }
)

Source from the content-addressed store, hash-verified

176}
177
178async function createTestProject(
179 rootDir: string,
180 name = "repo",
181 options?: { initGit?: boolean }
182): Promise<string> {
183 const projectPath = path.join(rootDir, name);
184 await fsPromises.mkdir(projectPath, { recursive: true });
185 if (options?.initGit ?? true) {
186 initGitRepo(projectPath);
187 }
188 return projectPath;
189}
190
191type TestConfigOverrides = Omit<ProjectsConfig, "projects">;
192

Callers 2

saveLocalParentWorkspaceFunction · 0.85

Calls 1

initGitRepoFunction · 0.70

Tested by

no test coverage detected