Skip to content

Commit 24c5117

Browse files
committed
update snapshots and tests
Signed-off-by: Osama Rabea <osrab3@gmail.com>
1 parent 58d0b27 commit 24c5117

File tree

3 files changed

+2492
-2
lines changed

3 files changed

+2492
-2
lines changed

e2e/TestCommands.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,15 @@ class TestCommands {
6969
}
7070

7171
cleanupWorkdir(): void {
72-
execSync(`rm -rf ${this.workdir} ; mkdir -p ${this.workdir}`);
72+
try {
73+
// Ensure parent directory exists first
74+
execSync(`mkdir -p $(dirname "${this.workdir}")`);
75+
// Then clean and recreate the work directory
76+
execSync(`rm -rf "${this.workdir}" && mkdir -p "${this.workdir}"`);
77+
} catch (error) {
78+
console.error(`Error in cleanupWorkdir for ${this.workdir}:`, error);
79+
throw error;
80+
}
7381
}
7482
}
7583

0 commit comments

Comments
 (0)