gsxdsm
934f2f0d04
FN-6004: add execFile to engine child_process test mocks
Update engine tests so child_process mocks cover execFile alongside exec.
- add execFile mock implementations and promisify support in branch/worktree tests that rely on child_process behavior
- extend simpler child_process mocks in integration, sandbox, and worktree tests to export execFile stubs
- keep existing exec and execSync mock behavior unchanged while restoring compatibility with code that now imports execFile
Files changed:
packages/engine/src/__tests__/branch-autocorrect.test.ts | 9 ++++++++-
.../engine/src/__tests__/branch-conflicts-self-owned.test.ts | 9 ++++++++-
packages/engine/src/__tests__/branch-conflicts.test.ts | 9 ++++++++-
packages/engine/src/__tests__/integration-branch.test.ts | 1 +
.../engine/src/__tests__/sandbox/bubblewrap-detect.test.ts | 1 +
.../engine/src/__tests__/sandbox/sandbox-exec-backend.test.ts | 1 +
.../engine/src/__tests__/sandbox/sandbox-exec-detect.test.ts | 1 +
.../engine/src/__tests__/worktree-acquisition-backend.test.ts | 2 +-
.../src/__tests__/worktree-acquisition-worktrunk.test.ts | 2 +-
packages/engine/src/__tests__/worktree-backend.test.ts | 2 +-
.../engine/src/__tests__/worktree-hooks-cross-platform.test.ts | 2 +-
packages/engine/src/__tests__/worktree-pool.test.ts | 10 ++++++++--
packages/engine/src/__tests__/worktree-stale-lock.test.ts | 2 +-
.../engine/src/__tests__/worktree-stale-registration.test.ts | 2 +-
14 files changed, 42 insertions(+), 11 deletions(-)
Fusion-Task-Id: FN-6004
Fusion-Task-Lineage: f87fb103-fe5d-4fc9-a640-9991c06e6448
2026-06-07 18:51:47 -07:00
..
2026-06-07 18:51:46 -07:00
2026-05-31 20:05:32 -07:00
2026-06-07 18:51:46 -07:00
2026-06-07 18:51:46 -07:00
2026-06-07 18:51:46 -07:00
2026-05-31 20:05:32 -07:00
2026-06-07 18:51:47 -07:00
2026-06-06 06:59:25 -07:00
2026-05-31 20:05:32 -07:00
2026-05-31 20:05:32 -07:00
2026-05-28 21:23:48 -07:00
2026-06-05 14:41:43 -07:00