Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sroussey committed Jan 31, 2025
1 parent a54a998 commit a8adb36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const testDir = ".cache/test/testing";

describe("FileKVRepository", () => {
let repository: FileKVRepository;
rmdirSync(testDir, { recursive: true });
try {
rmdirSync(testDir, { recursive: true });
} catch {}

beforeEach(() => {
repository = new FileKVRepository(testDir);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ describe("FileTaskGraphRepository", () => {
let repository: FileTaskGraphRepository;

beforeEach(() => {
rmdirSync(".cache/test/file-task-graph", { recursive: true });
try {
rmdirSync(".cache/test/file-task-graph", { recursive: true });
} catch {}
repository = new FileTaskGraphRepository(".cache/test/file-task-graph");
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe("FileTaskOutputRepository", () => {
let repository: FileTaskOutputRepository;

beforeEach(() => {
rmdirSync(".cache/test/file-task-output", { recursive: true });
try {
rmdirSync(".cache/test/file-task-output", { recursive: true });
} catch {}
repository = new FileTaskOutputRepository(".cache/test/file-task-output");
});

Expand Down

0 comments on commit a8adb36

Please sign in to comment.