Skip to content

Commit

Permalink
cherry-pick(#28239): fix: collect all errors in removeFolders
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 20, 2023
1 parent b894916 commit 4a25371
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/playwright-core/src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export async function mkdirIfNeeded(filePath: string) {

export async function removeFolders(dirs: string[]): Promise<Error[]> {
return await Promise.all(dirs.map((dir: string) =>
fs.promises.rm(dir, { recursive: true, force: true, maxRetries: 10 })
)).catch(e => e);
fs.promises.rm(dir, { recursive: true, force: true, maxRetries: 10 }).catch(e => e)
));
}

export function canAccessFile(file: string) {
Expand Down

0 comments on commit 4a25371

Please sign in to comment.