From aa061450bbe5d9b95caf5b3fa2d7e374eb44dc05 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 13 Nov 2026 16:29:20 -0800 Subject: [PATCH] Type-check cancellation assertions on the shared removal mock --- src/main/ipc/worktrees-remove-preflight.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/ipc/worktrees-remove-preflight.test.ts b/src/main/ipc/worktrees-remove-preflight.test.ts index b8c8849e5fc..d07d86c703d 100644 --- a/src/main/ipc/worktrees-remove-preflight.test.ts +++ b/src/main/ipc/worktrees-remove-preflight.test.ts @@ -415,8 +415,8 @@ it.each(['ipc', 'runtime'] as const)( runtime.acquireFileWatcherRemoval = acquireWatcherRemoval const signal = worktreeRemovalLifetime.signal removeWorktreeMock.mockImplementation(async (_repo, _path, _force, options) => { - expect(options.checkoutDeleteSignal).toBeUndefined() - expect(options.signal).toBeUndefined() + expect(options).not.toHaveProperty('checkoutDeleteSignal', expect.anything()) + expect(options).not.toHaveProperty('signal', expect.anything()) await worktreeRemovalLifetime.close() expect(signal.aborted).toBe(true) return {}