Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/integration/build.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ describe("Build Tests", () => {
beforeEach(() => {
// Ensure output directory does not exist
if (fs.existsSync(outDir)) {
fs.rmdirSync(outDir, { recursive: true });
fs.rmSync(outDir, { recursive: true, force: true });
}
});

afterEach(() => {
// Clean up
if (fs.existsSync(outDir)) {
fs.rmdirSync(outDir, { recursive: true });
fs.rmSync(outDir, { recursive: true, force: true });
}
});

Expand Down Expand Up @@ -122,14 +122,14 @@ describe("Build Tests", () => {
beforeEach(() => {
// Ensure output directory does not exist
if (fs.existsSync(outDir)) {
fs.rmdirSync(outDir, { recursive: true });
fs.rmSync(outDir, { recursive: true, force: true });
}
});

afterEach(() => {
// Clean up
if (fs.existsSync(outDir)) {
fs.rmdirSync(outDir, { recursive: true });
fs.rmSync(outDir, { recursive: true, force: true });
}
});

Expand Down
8 changes: 4 additions & 4 deletions test/integration/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,20 @@ describe("Init Tests", () => {
beforeEach(() => {
// Clean up any existing directories
if (fs.existsSync(projectPathC)) {
fs.rmdirSync(projectPathC, { recursive: true });
fs.rmSync(projectPathC, { recursive: true, force: true });
}
if (fs.existsSync(projectPathJS)) {
fs.rmdirSync(projectPathJS, { recursive: true });
fs.rmSync(projectPathJS, { recursive: true, force: true });
}
});

afterEach(() => {
// Clean up created directories
if (fs.existsSync(projectPathC)) {
fs.rmdirSync(projectPathC, { recursive: true });
fs.rmSync(projectPathC, { recursive: true, force: true });
}
if (fs.existsSync(projectPathJS)) {
fs.rmdirSync(projectPathJS, { recursive: true });
fs.rmSync(projectPathJS, { recursive: true, force: true });
}
});

Expand Down
Loading