test: stabilize worktree isolation checks

This commit is contained in:
artale 2026-06-24 23:40:09 +02:00
parent 0203b3aab1
commit d5a865b230
1 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ describe("worktree isolation", () => {
manager.remove(spec.name);
expect(fs.existsSync(wt)).toBe(false);
expect(manager.list().map((item) => item.name)).not.toContain(spec.name);
});
}, 30_000);
it("creates and checks out a branch in a single step", () => {
const { root: repo, worktrees } = mkRepo();
@ -82,7 +82,7 @@ describe("worktree isolation", () => {
manager.remove(spec.name);
expect(fs.existsSync(expected)).toBe(false);
});
}, 30_000);
it("parses worktree list safely", () => {
const { root: repo, worktrees } = mkRepo();
@ -100,5 +100,5 @@ describe("worktree isolation", () => {
expect(manager.list().map((item) => item.path.replace(/\\/g, "/"))).toContain(normalizedWt);
manager.remove(spec.name);
});
}, 30_000);
});