Skip to content

Commit

Permalink
Merge branch 'US152271_Cleanup_Folders_Option_2' of github.com:Bright…
Browse files Browse the repository at this point in the history
…spaceUI/testing into US152271_Cleanup_Folders_Option_2
  • Loading branch information
svanherk committed Jun 22, 2023
2 parents e3363ad + 7a05602 commit 36ffa98
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/server/visual-diff-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,9 @@ export function visualDiff({ updateGoldens = false, runSubset = false } = {}) {

if (runSubset || currentRun > 0) {
if (!clearedDirs.has(newPath)) {
const promise = clearDir(updateGoldens, newPath);
clearedDirs.set(newPath, promise);
await promise;
} else {
await clearedDirs.get(newPath);
clearedDirs.set(newPath, clearDir(updateGoldens, newPath));
}
await clearedDirs.get(newPath);
}
}

Expand Down

0 comments on commit 36ffa98

Please sign in to comment.