From 7b06a0bebd48c2bbcba730ab4b085c7cc07ef4b6 Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Tue, 14 Oct 2025 11:56:56 -0400 Subject: [PATCH] fix(e2e): Use rmSync instead of rm -rf for e2e tests (#11087) --- integration-tests/test-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/test-helper.ts b/integration-tests/test-helper.ts index 41161d8a24..0fe1714d44 100644 --- a/integration-tests/test-helper.ts +++ b/integration-tests/test-helper.ts @@ -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') {