fix(FN-4742): stabilize worktrunk removal interaction assertions
Fusion-Task-Id: FN-4742 Fusion-Task-Lineage: 59bca56e-c9d9-4066-9f5a-6d8ee252a100
This commit is contained in:
committed by
gsxdsm
parent
378762c4ab
commit
33755d44fb
@@ -79,7 +79,7 @@ describe("reliability interactions: worktrunk worktree removal routing", () => {
|
||||
|
||||
it("worktree-pool cleanup registered branch calls native backend remove", async () => {
|
||||
const removeSpy = vi.spyOn(NativeWorktreeBackend.prototype, "remove").mockResolvedValue(undefined);
|
||||
readdirSpy.mockReturnValue([{ isDirectory: () => true, name: "fn-1" }]);
|
||||
readdirSpy.mockReturnValue([{ isDirectory: () => true, name: "fn-1" }] as any);
|
||||
execSpy.mockImplementation((cmd: string, _opts: unknown, cb: (err: unknown, stdout: string, stderr: string) => void) => {
|
||||
if (cmd.includes("git worktree list --porcelain")) {
|
||||
cb(null, "worktree /repo/.worktrees/fn-1\n", "");
|
||||
|
||||
Reference in New Issue
Block a user