(
config: Config,
projectPath: string,
workspaces: WorkspaceConfigEntry[],
options: SaveProjectWorkspacesOptions | TestTaskSettings = {}
)
| 227 | } |
| 228 | |
| 229 | async function saveWorkspaces( |
| 230 | config: Config, |
| 231 | projectPath: string, |
| 232 | workspaces: WorkspaceConfigEntry[], |
| 233 | options: SaveProjectWorkspacesOptions | TestTaskSettings = {} |
| 234 | ): Promise<void> { |
| 235 | const normalizedOptions = |
| 236 | "maxParallelAgentTasks" in options ? { taskSettings: options } : options; |
| 237 | const { extraProjects = [], ...overrides } = normalizedOptions; |
| 238 | await saveTestConfig( |
| 239 | config, |
| 240 | [[projectPath, { trusted: true, workspaces }], ...extraProjects], |
| 241 | overrides |
| 242 | ); |
| 243 | } |
| 244 | |
| 245 | async function saveLocalParentWorkspace( |
| 246 | config: Config, |
no test coverage detected