Skip to content

Commit

Permalink
suppress error when deleting tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin committed Jan 12, 2025
1 parent 84a56a1 commit 1cf2084
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/bin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ beforeEach(async () => {
});

afterEach(async () => {
await rm(dir, { recursive: true });
await rm(dir, { recursive: true }).catch((error: unknown) => {
console.error(error);
});
});

test("correct", async () => {
Expand Down
4 changes: 3 additions & 1 deletion src/create-project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ beforeEach(async () => {
});

afterEach(async () => {
await rm(dir, { recursive: true });
await rm(dir, { recursive: true }).catch((error: unknown) => {
console.error(error);
});
});

test("correct", async () => {
Expand Down

0 comments on commit 1cf2084

Please sign in to comment.