fix(e2e): Use rmSync instead of rm -rf for e2e tests (#11087)

This commit is contained in:
Abhi
2025-10-14 11:56:56 -04:00
committed by GitHub
parent 9e8c767694
commit 7b06a0bebd

View File

@@ -512,7 +512,7 @@ export class TestRig {
// Clean up test directory
if (this.testDir && !env['KEEP_OUTPUT']) {
try {
execSync(`rm -rf ${this.testDir}`);
fs.rmSync(this.testDir, { recursive: true, force: true });
} catch (error) {
// Ignore cleanup errors
if (env['VERBOSE'] === 'true') {