(
rootDir: string,
name = "repo",
options?: { initGit?: boolean }
)
| 176 | } |
| 177 | |
| 178 | async 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 | |
| 191 | type TestConfigOverrides = Omit<ProjectsConfig, "projects">; |
| 192 |
no test coverage detected