Fix the name of the file to be deleted when doing baseline accept (#51705)

This commit is contained in:
Sheetal Nandi
2022-11-30 14:01:03 -08:00
committed by GitHub
parent 8036b149a4
commit f636fc1846

View File

@@ -805,7 +805,7 @@ function baselineAcceptTask(localBaseline, refBaseline) {
}
const toDelete = await glob(`${localBaseline}/**/*.delete`, { nodir: true });
for (const p of toDelete) {
const out = localPathToRefPath(p);
const out = localPathToRefPath(p).replace(/\.delete$/, "");
await fs.promises.rm(out);
}
};