From e4e64551fbe246f0ad5c75868a345a0f3514c717 Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Mon, 31 Aug 2026 12:36:17 -0700 Subject: [PATCH] test(pty): isolate direct spawn wrapper assertion --- src/main/providers/local-pty-utils.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/providers/local-pty-utils.test.ts b/src/main/providers/local-pty-utils.test.ts index a1300d369e3..509b8c3075e 100644 --- a/src/main/providers/local-pty-utils.test.ts +++ b/src/main/providers/local-pty-utils.test.ts @@ -313,6 +313,10 @@ describe('spawnShellWithFallback macOS TCC login wrapping', () => { }) describe('spawnDirectPty', () => { + beforeEach(() => { + wrapSpawnMock.mockReset() + }) + it('passes the executable and argv through without shell or login wrapping', () => { const ptySpawn = vi.fn().mockReturnValue({ pid: 42 })